How to Comment Out Multiple Lines in Notepad++

You can comment out multiple lines in Notepad++ by following these steps:

Open Notepad++ document.

Select the lines that you want to comment out.

Press Ctrl + Shift + Q.

That’s all.

You can uncomment lines by selecting them. After that, select Block Uncomment by clicking Edit > Comment/Uncomment.

The alternative ways are as follows:

Method #1

To comment, select the lines and press Ctrl + Q.

If you want to uncomment multiple lines at once, use the above-mentioned key combination after selecting the lines.

Method #2

Select the lines.

For comment – Press Ctrl + K.

For uncomment – Press Ctrl + Shift + K.

That’s all.

Read: