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

QmlJSEditor ReformatFile removes "required" on properties

XMLWordPrintable

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

      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

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes