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

QmlJSEditor ReformatFile removes "required" on properties

    XMLWordPrintable

Details

    • Windows
    • 89c8021c5cd4a2c0bc03bcd58e022b1483eaf6eb (qt-creator/qt-creator/4.13)

    Description

      When executing "QmlJSEditor" > "ReformatFile" via keybind OR "Enable auto format on file save" for QML/JS Editing, the formatter removes the "required" keyword from properties.

      Reformatting should never change the functional behavior of the file. 

      I'm not aware of any workarounds.

      Required properties: https://doc.qt.io/qt-5/qtqml-syntax-objectattributes.html#required-properties

      Attachments

        Issue Links

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

          Activity

            People

              fawzi Fawzi Mohamed
              jhuels Joshua Huels
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes