Line Notes for VSCode

Multi tool use
Multi tool use


Line Notes for VSCode



Is there any way by which I can add a useful message to a line in VS Code Editor which is not written in code but is like a note (Similar to like comments on a line in a Pull Request in Git) which can be deleted later on.




2 Answers
2



Comments can be added to code based on what language you are using. They are not specfic to the editor for the most part.



For example, in C++ you can comment by putting double slashes before the line such as // Random Comment.


// Random Comment



Look up the commenting syntax for whatever code language you are using.





I didn't mean comment in code but I mean short message added to a particular line (like notes at that line).
– Anushi Maheshwari
Jul 1 at 21:16





Why would you need to if you can comment directly onto the line or to the one after? Wouldn't it serve the same purpose and be be more transferable between editors?
– The Great Sauron
Jul 1 at 21:26





No, It would change the codebase. Consider the situation when I have multiple lines to discuss with some person later. It's difficult to remember them all and changing codebase would add a headache of removing it back and the method would not stilll solve the problem.
– Anushi Maheshwari
Jul 1 at 21:30






Then I do not believe there is something like to what you are looking for, sorry.
– The Great Sauron
Jul 1 at 21:31





I think there must be an extension for this. :/
– Anushi Maheshwari
Jul 1 at 21:32




Many languages allow you to append a comment to the end of a line. In python for example, you could have the following:



import numpy as np
a = 13.6 # a is the density of material



anser = a * b # where b is the volume in meters/cubic centimeters
...



Do not know what your language is but maybe this could work.





Check comments on first answer.
– Anushi Maheshwari
Jul 2 at 7:00







By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

MnGNfvCE
Ily1 pr80s 31aviyl1atX7Evu Zc9JTAWq 0cL7UUwpZIpVsKpNWf5bwesyp YeqQJMg

Popular posts from this blog

Boo (programming language)

Rothschild family