Details
-
Bug
-
Resolution: Fixed
-
P1: Critical
-
Qt Creator 17.0.0-beta1
-
None
-
Windows 10 22H2
-
b9cc73b72 (17.0), a33578453 (17.0), f354b1aa5 (17.0), 056d7c023 (17.0)
Description
Problem 1: Built-in formatter
I'm using the same (now-deprecated) built-in formatter for QML code, and I kept the style unchanged between Qt Creator 16.0.1 and 17.0.0-beta1:
However, Qt Creator now seems to ignore the style settings. When I open a *.qml file in the code editor and press the [Tab] key...
- Qt Creator 16.0.1 inserts a tab character (Expected)
- Qt Creator 17.0.0-beta1 inserts 4 space characters (Not Expected)
Problem 2: qmlformat (LSP)
Next, I tried the new qmlformat functionality and applied UseTabs=true. Is that correct? I'm not sure (QTCREATORBUG-32964), but the preview pane seems to accept this setting:
I used a Qt 6.8.3 kit and enabled qmlls. However, just like Problem 1, pressing the [Tab] key still produces 4 space characters instead of a tab character in Qt Creator 17.0.0-beta1.
Attachments
Issue Links
- is duplicated by
-
QTCREATORBUG-32951 No way to use tabs in Qt Quick source files
-
- Closed
-
- relates to
-
QTCREATORBUG-32359 Add tests for formatting module in QtC
-
- Reported
-
-
QTCREATORBUG-32964 Document how to use the new "Global qmlformat Configuration"
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-32963 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
645560,4 | qmlformat: use the highest-precedence ini file | 17.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
645561,7 | qmljs formatter: take tab setting into account | 17.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |
645562,7 | qmlformat: do not override tabSettings | 17.0 | qt-creator/qt-creator | Status: MERGED | +2 | +1 |
647402,5 | Fix formatting being canceled during save operations | 17.0 | qt-creator/qt-creator | Status: DEFERRED | -1 | 0 |
647403,6 | qmlformat: fix preview | 17.0 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |