سؤال

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?

هل كانت مفيدة؟

المحلول

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

comment: CTRL + D

uncomment: CTRL + SHIFT + D

list of shortcuts

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top