Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

kdevelop: comment out block

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?

like image 694
Ilia Choly Avatar asked Dec 05 '12 15:12

Ilia Choly


People also ask

How do you comment out a whole block?

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+\ )

How do you comment out a block of text?

Comment and uncomment blocks of codePress Ctrl+Shift+/ .

How do I comment out a block of code in C# Visual Studio?

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.

How do you comment a block of code in IntelliJ?

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.


1 Answers

Of course I find it 2 minutes after posting ...

comment: CTRL + D

uncomment: CTRL + SHIFT + D

list of shortcuts

like image 120
Ilia Choly Avatar answered Oct 30 '22 01:10

Ilia Choly