Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In Eclipse it is possible to comment out multiple lines by selecting them and executing CTRL + /:

// helloworld

Is this possible in Notepad++ as well instead of typing // in front of an individual multiple lines?

share|improve this question

2 Answers 2

up vote 9 down vote accepted

Select desired lines and then press CTRL+Q. This will toggle comments on and off.

Also, I've just recently become a fan of ALT + Left Mouse Click to select multiple lines and just manually comment those lines with //.

I've found the ALT + Left Mouse Click trick to work well with Visual Studio, JetBrain products, Notepad++ but not Eclipse.

share|improve this answer
The ALT + LMC and subsequently // works in .scala as well. To uncomment: ALT + LMC and subsequently two times DEL –  185140777 Jul 30 '14 at 20:01
For the curious, alt + shift + a toggles block selection mode in eclipse –  VitaminYes Dec 4 '14 at 17:11

In notepad++ I believe that the shortcut is CTRL+Q for commenting the code.

You can go to Settings > Shortcut Mapper to change this to match your preference.

The default for a block comment is CTRL+SHIFT+Q. So you can highlight the block of code then use this shortcut.

share|improve this answer
Ok I will check this and let you know the outcome –  185140777 Jul 30 '14 at 19:34
I have created a .html file and executing the command results in <!-- -->, but nothing happens in a .scala file –  185140777 Jul 30 '14 at 19:38
CTRL + SHIFT + Q results in /* */ in a .java file –  185140777 Jul 30 '14 at 19:40
These are the different comments for different languages. Here is a list of supported languages natively in Notepad++: en.wikipedia.org/wiki/Notepad%2B%2B#Programming_languages –  Dan Smith Jul 30 '14 at 19:42
So how do you uncomment in HTML? –  Patrick Szalapski Sep 22 '14 at 13:20

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.