Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Codeblocks comment out whole block

I am using a Codeblocks IDE for C++ and I tried googling it, but could not find the answer.

How do I comment out a block of code in Codeblocks? For example in Eclipse its ctrl+7.

like image 919
Jaanus Avatar asked Mar 13 '11 07:03

Jaanus


People also ask

How do you comment out all lines in code blocks?

You can also block comment multiple lines of code using the characters /* */ . Tip: The characters /* */ on lines that already are already commented out are not affected when you comment and uncomment code as described above.

How do you comment out multiple lines in VS code?

Comment Code Block Ctrl+K+C/Ctrl+K+U If you select a block of code and use the key sequence Ctrl+K+C, you'll comment out the section of code. Ctrl+K+U will uncomment the code.


1 Answers

Ctrl + Shift + C to comment selected block

Ctrl + Shift + X to uncomment .

like image 199
user2166988 Avatar answered Sep 22 '22 02:09

user2166988