I can't find any shortcuts for commenting out blocks of code.
before:
int main() {
std::cout << "my awesome program" << std::endl;
return 0;
}
CTRL + /
// int main() {
// std::cout << "my awesome program" << std::endl;
// return 0;
//}
This is a pretty essential feature for me and I can't seem to find it anywhere in the menus. Does kdevelop not have this functionality?
To comment out multiple code lines right-click and select Source > Add Block Comment. ( CTRL+SHIFT+/ ) To uncomment multiple code lines right-click and select Source > Remove Block Comment. ( CTRL+SHIFT+\ )
Comment and uncomment blocks of codePress Ctrl+Shift+/ .
While debugging or experimenting with code, you might want to comment blocks of code either temporarily or long term. To comment out an entire block of code: Select the code and select Toggle Line Comment(s) from the context menu.
Block comments are enclosed in slash-asterisk ( /*) and asterisk-slash ( */ ). To add a block comment in IntelliJ IDEA, press ⌥ ⌘ / macOS or Ctrl + Shift + / on Windows and Linux.
Of course I find it 2 minutes after posting ...
list of shortcuts
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