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

Indenting first line in a header file indents the whole file

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 4.5.0-rc1
    • Qt Creator 4.5.0-rc1
    • Editors
    • None
    • Windows 7 x64, Creator from ab1107c497, Tabs only, Tab size 4, Indent size 4, Continuation lines with Regular Indent
    • 63d18a45377cac0d6f2f4f66cd5facb4817aace9

    Description

      #ifndef TEST
      #define TEST
      
      #define FOO 42
      
      void bar();
      
      #endif

      Press TAB at the start of the first line. Result:

              #ifndef TEST
          #define TEST
      
          #define FOO 42
      
          void bar();
      
          #endif

      (The first line is indented twice, all following lines once)

      Expected: Only the first line is indented once

      Attachments

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

        Activity

          People

            davschul David Schulz
            aha_1980 André Hartmann
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes