PDA

View Full Version : QTCreator block comment?



marc2050
18th May 2011, 00:24
Hi.

Is there a short cut key in QTCreator that I could choose multiple lines and then just block comments the selection? In Matlab, you can do it very easily using Ctrl-R and all the lines choosen will be commented and you can uncomment by Ctrl-T. It's very handy for quick testing and working of codes. Do we have that function in QTCreator?

Thank you.
Marc

milli
18th May 2011, 01:34
You can do this very easily.You can select multiple lines in the editor and then right click..There is an (Un)Comment selection and the shortcut is Ctrl+/ either for commenting or for uncommenting a line.