Uploaded image for project: 'Qt Creator'
  1. Qt Creator
  2. QTCREATORBUG-24017

Add option to configure block comment behavior

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Done
    • Icon: P4: Low P4: Low
    • Qt Creator 4.15.0-beta1
    • None
    • Editors
    • None
    • All
    • cc89f72fe54e7574077bbf737344f282a9ccd970 (qt-creator/qt-creator/master)

      When commenting a selected block of code, Qt Creator behaves differently depending on the shape of the selection:

      • // if the cursor is in 1 row and the selection is empty
      • // if the selection spans any number of rows but only full rows (ish) are selected
      • // if selecting only indentation space
      • /* */ otherwise

      This is undoubtely smart, but it can also be quite unpractical because you need to be careful when selecting the code.
      IMHO it would be nice to choose if use only // comments or both.
      It could be a simple checkbox in the Text Editor -> Behavior section, as in the mock

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            davschul David Schulz
            jacklilhammers Jack Lilhammers
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes