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,166 times
3
super cool
- 33
- 3
-
1You can also use Ctrl + / to comment out lines. Maybe that will work? – Randomhero Oct 24 '19 at 13:34
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
- 10,831
- 10
- 47
- 78

