Details
-
Bug
-
Resolution: Done
-
P1: Critical
-
Qt Creator 4.12.4, Qt Creator 4.13.0-beta1
-
-
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
- relates to
-
QTCREATORBUG-24144 QML required properties can confuse auto indentation
- Closed