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

Add option to configure block comment behavior

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Open
    • Priority: P4: Low
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Editors
    • Labels:
      None
    • Platform/s:
      All

      Description

      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

        Attachments

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

          Activity

            People

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

              Dates

              Created:
              Updated:

                Gerrit Reviews

                There are no open Gerrit changes