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

        For Gerrit Dashboard: QTCREATORBUG-21036
        # Subject Branch Project Status CR V

          Activity

            People

            Assignee:
            mabenell Marco Benelli
            Reporter:
            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