Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 14.0.0-rc1, Qt Creator 15.0.0 (15.0 branch)
-
-
310ec8d6a (14.0)
Description
qmlformat works well if being called from command line. For example
qmlformat.exe -i Main.qml
It modifies my Main.qml in place according to the .qmlformat.ini stored in project folder.
But it does not if used from 'Automatic Formatting on File Save' option of Qt Creator. It seems like that .qmlformat.ini is ignored.
A sample .ini is attached. One can test that:
1. Call qmlformat.exe from CMD, then the result .qml file has indent of 16 (instead of 4 by default).
2. Enable Automatic Formatting on File Save in Qt Creator. Indent is still 4, as if .ini file is not used.
My settings of Preferences is also attached.
Attachments
Issue Links
- relates to
-
QTCREATORBUG-31404 Running SDK qmlformat fails on file save
- Reported
For Gerrit Dashboard: QTCREATORBUG-29668 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
582499,5 | QMLJSEditor: Fix calling qmlformat on save | 14.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |