Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022 - Taking notes (Not in code)

There is any way to take notes in the code without put a comment?

I know some tips, like:

  • Add breakpoints and put labels; then I can open the breakpoint window and I will see specific lines: enter image description here
  • Or, add bookmarks and navigate with the shortcuts.

But, there is any other strategy to put comments or take notes without putting comments in the code?

Why? - Basically because sometimes I like to put my own comments, and I work with a large group of devs; so I don't want to push those notes into the repo (or even go to clean the code before making a commit).

like image 705
MiBol Avatar asked Jul 11 '26 06:07

MiBol


1 Answers

Its either executable code or its a (single // or multi-line /* */ ) comment in .net

Either you look into setting up git to ignore your specific lines you don't want to include, which to be honest doesn't look like something that is worth the time investment, or use a note taking application that allows you to include code snippets. Then just keep your notes open. This is what I do for personal notes and comments that don't need to be committed to the repo.

Personally, I like Obsidian and use it for all of my code notes, it uses Prism.js for rendering code snippets, though it comes with learning a bit of markdown. I use OneNote a lot as well at work, when I need a more freeform scrapbook sort of WYSIWYG interface, but that doesn't have specific functionality for code snippets.

like image 171
Narish Avatar answered Jul 13 '26 20:07

Narish



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!