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

QML code formatting breaks for braces in comments

    XMLWordPrintable

Details

    Description

      If this code is auto formatted:
      (Reformat file)

      import QtQuick 2.8
      import QtQuick.Timeline 1.0
      
      Item {
          id: artboard_1_copy_2
          width: 1917
          height: 1080
      }
      /*test*
      }
      */
      

      I get:

      import QtQuick 2.8
      import QtQuick.Timeline 1.0
      
      Item {
          id: artboard_1_copy_2
          width: 1917
          height: 1080
          /*test*
      }
      */
      

      which is not syntactically correct anymore.

      This has a strong impact on Design Studio since ui.qml files are auto formatted automatically.

      Attachments

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

        Activity

          People

            mabenell Marco Benelli
            thohartm Thomas 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