How do I comment out several lines of text selected in the IDE with a control key combination?
I thought that Ctrl + Alt + C was the correct sequence, but that's not working.
The "Uncomment" command corresponds to the Uncomment entry in the Advanced submenu of the Edit Menu . It may be called by using the keyboard shortcut "Ctrl+Shift+K".
Use the keys Ctrl K , C to comment out the line and Ctrl K , U to uncomment the line.
An alternative way to comment any block of code is to select it, press Alt+Enter and choose Comment selection. The same way works for uncommenting code inside a block comment - set the caret anywhere in the block comment, press Alt+Enter and choose Uncomment.
To comment/uncomment one line, use: Ctrl + /.
To comment/uncomment a block, use: Ctrl + Shift + /.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With