In Eclipse I can just type /* and enter, and it would form a perfect comment block for complex comments above the code:
/*
*
*/
How to do the same or similar in Visual Studio?
In Eclipse I can just type /* and enter, and it would form a perfect comment block for complex comments above the code:
/*
*
*/
How to do the same or similar in Visual Studio?
2
Answers
What language? I’m going to assume C++.
Tools > Options > Text Editor > C/C++ > Advanced > Brace Completion > Complete Multiline Comments > True
This setting will do exactly what you describe. Typing
/*
will auto-complete the*/
and any new line entered after/*
will auto-insert a new*
at the beginning of the line.Alternatively:
Shift + 8
or*
on the keypad.You can just select the code you want to comment and press ctrl + /