Page 1 of 1

Any keyboard shortcut for uncommenting the code?

Posted: Tue Dec 23, 2008 10:42 am
by bkankur
Dear Friends,

This is one of the best IDE I have used, and I am using it since few days only but I really like it and also referring it to my colleagues and my other friends.
I have two questions
1) how to uncomment the code using shortcut keys ? I tried to find it under Settings->keyboard shortcuts.
2) Also, If someone has used kwrite in linux, one can comment the code just by using shortcut keys and need not select the line to be commented. I mean if one wants to comment a single line, then he/she dont have to select it before doing comment/uncomment. If above feature is already there, then can anyone share it with me?

A lots and lots of Good & Pure blessing to all who are being part of such a Extraordinary IDE.

Thanks to all,
Ankur.

Re: Any keyboard shortcut for uncommenting the code?

Posted: Tue Dec 23, 2008 11:12 am
by eranif
ctrl-shift-p to comment line in C++ style (//)
ctrl-shift-c to comment the selection in C-style (/* ... */)

hitting ctrl-shift-p on line which was commented previously with C++ style will toggle the comment
EDIT:
Look harder in 'keyboard shortcuts' Under:
menu: C++
action: Toggle Line Comment

and also:
menu: C++
action: comment selection

Eran

Re: Any keyboard shortcut for uncommenting the code?

Posted: Tue Dec 23, 2008 12:16 pm
by bkankur
Excellent.. Thanks once again. Great Work !!

Its a ALLROUNDER IDE !! :)