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

Ugly auto-indent for templates

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 2.1.0
    • Qt Creator 2.1.0
    • C/C++/Obj-C++ Support
    • None
    • debian testing amd64
    • d7bf4f515d36f742d7fd28869c97129beff2a7a5

    Description

      With latest snapshot (Sep 22, b6d34c086c, do not remember about previous versions/snapshots) the auto-indention of template classes is very ugly! For example, try create simple template class and automatic indention suggests you this "style":

      template<class Boo> class Foo
      {
                            |
                          };
      

      where | is the cursor position.
      However, if you split first line like in the example below, auto-indention works as expected:

      template<class Boo>
      class Foo
      {
        | 
      };
      

      except second line ("class Foo") that should be indented IMHO.

      I've attached a screenshot with my Options->Text Editor->Behaviour tab.

      Attachments

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

        Activity

          People

            ckamm Christian Kamm
            genacid gena
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes