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
-