How do I force Visual Studio 2019 to use single line (//) comments instead of multi-line (/* */) comments when I press CTRL+K+CTRL+C?
Asked
Active
Viewed 1,836 times
3
super cool
- 33
1 Answers
3
This is in Visual Studio 2019.
- To use a multi-line comment (
/*...*/), select the block without the spaces before first selected line. See the following image where the four spaces before line number 5 are not selected.
- To use single line comment (
//...//), select the whole block with the spaces of every line. See the following image:
This is also valid for a single line. In the images, white spaces are set to be visible to understand easily.
Biswapriyo
- 11,584

