There is any way to take notes in the code without put a comment?
I know some tips, like:

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).
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With