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

Autoindent brakes with Allman indent style in QML editor

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • Qt Creator 4.2.0-rc1
    • Qt Creator 3.1.1
    • Quick / QML Support
    • None
    • Linux 32b, Qt 5.3.0, QtCreator 3.1.1

    Description

      When using Allman indent style autoindent breaks by decreasing indent width by one on every lines following opening bracket.

      Got:

      import QtQuick 2.2
      
      ListView
      {
      	model: ListModel
      	{
      	| <- cursor position, incorrect indent
      } <- incorrect indent
      [...]
      

      Expected:

      import QtQuick 2.2
      
      ListView
      {
      	model: ListModel
      	{
      		| <- cursor position
      	}
      [...]
      

      Attachments

        1. QTCREATORBUG-12326.patch
          0.5 kB
          Denis Klychkov
        For Gerrit Dashboard: QTCREATORBUG-12326
        # Subject Branch Project Status CR V

        Activity

          People

            mabenell Marco Benelli
            kamil Kamil Ostaszewski
            Votes:
            10 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes