Results 1 to 2 of 2

Thread: QTCreator block comment?

  1. #1
    Join Date
    Apr 2011
    Posts
    58
    Thanks
    1

    Default QTCreator block comment?

    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

  2. #2
    Join Date
    Mar 2011
    Location
    Greece
    Posts
    23
    Thanks
    15
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: QTCreator block comment?

    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.
    Last edited by milli; 18th May 2011 at 02:01.

Similar Threads

  1. Qt Creator Comment Section
    By ToddAtWSU in forum Qt Tools
    Replies: 3
    Last Post: 6th February 2011, 21:01
  2. Multiline comment with QXmlStreamWriter
    By QtWannabe in forum Qt Programming
    Replies: 2
    Last Post: 30th November 2010, 13:05
  3. QtCreator 2.0 crashes application working in QtCreator 1.3
    By been_1990 in forum Qt Programming
    Replies: 2
    Last Post: 21st September 2010, 12:58
  4. Request for comment: Post event filter
    By wysota in forum Qt Programming
    Replies: 3
    Last Post: 7th March 2008, 21:55
  5. simple QString comment
    By TheKedge in forum Qt Programming
    Replies: 1
    Last Post: 13th July 2006, 13:29

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.