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.
You can do a box comment with /*
at the start and */
at the end. It'll block out everything in between.
i.e.
/*This is part of a block comment.
This is still part of it
This also part of it */
If you just highlight the code you want to comment out and go to Edit --> Box-Comment. It'll do it all for you.
Shortcut to Comment highlighted code: Ctrl + Shift + C
Shortcut to Uncomment highlighted code: Ctrl + Shift + X
By the way, You can go with this link and you can search whatever shortcut you want in codeblocks.
There are various functions involving that sort of thing, they're all in the Edit menu