Question:
I started out coding in C++, in C++, to comment a line with the coding language I grew up on, one would use the command:
//comment
in vb, such would be
'comment
in c++ h'm friendly on an abbreviation that can have two purposes, it can comment out a small section of a line of code in the middle:
code /*comment*/ code
or I could block out a whole lot of lines
code
/*comment
comment
comment*/
code
is there a similar way to comment out lines in vb, without going through each and every line, or selecting every line and using the button, or even just commenting out a section of code in the middle?
I seek not code, but knowledge. I seek not what works, but why what i have doesn't. I seek reasons!
Answer1:
Unfortunately, there is no way to do what you're looking for. The only way is to manually comment each line, or select a block of code and either press Ctrl+K, Ctrl+C, or click Edit - Advanced - Comment Text.
Aaron Alton
Answer2:
Use the Comment, Uncomment buttons on the Standard toolbar.
Answer3:
do you know if visual c++ or C# has the ability to do this?
I seek not code, but knowledge. I seek not what works, but why what i have doesn't. I seek reasons!
Answer4:
You are describing features of the C languages C, C++ and C#. The visual flavors conform.