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 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.
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.
Ctrl + Shift + C to comment selected block
Ctrl + Shift + X to uncomment .
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