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

"Auto-indent Selection" adds whitespace on empty lines

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Reported
    • Priority: Not Evaluated
    • Resolution: Unresolved
    • Affects Version/s: Qt Creator 4.5.0, Qt Creator 4.6.0-beta1
    • Fix Version/s: None
    • Component/s: C/C++/Obj-C++ Support
    • Labels:
      None

      Description

      When using "Auto-indent Selection" on code that contain empty lines, whitespace is added on empty lines.

      For instance, using '.' to show spaces:

      void f() {
      
      ....int a = 0;
      
      ....return;
      
      }
      

      Becomes:

      void f() {
      ....
      ....int a = 0;
      ....
      ....return;
      ....
      }
      

        Attachments

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

          Activity

            People

            • Assignee:
              kosjar Nikolai Kosjar
              Reporter:
              bterrier Benjamin Terrier
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes