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

Auto-indentation on switch-statement cases is wrong

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • Qt Creator 1.3.1
    • Qt Creator 1.3.0 rc1, Qt Creator 1.3.0
    • Editors
    • None
    • 9839dea6bc472a6e464a0afdbbb20677e53c5afc

    Description

      Creator's auto-indentation is usually very good but in the case of C/C++ switch statements, it seems to get confused.

      When entering the ';' (semi-colon) of the case label, the entire line is shifted left by about two tab-widths (I use tabs, not spaces, as specified in the options).

      I expect the label to be indented by one tab width to the right inside the scope, just as is the case with if statements etc.

      I always have to correct this manually each time, a time-waster that detracts from an otherwise first-class source editor!

      Attachments

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

        Activity

          People

            lindeije Thorbjørn Lindeijer (closed Nokia identity) (Inactive)
            danny77uk Daniel
            Votes:
            2 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes