Details
-
Bug
-
Resolution: Fixed
-
P2: Important
-
Qt Creator 18.0 (master branch)
-
None
-
b9cc73b72 (17.0), a33578453 (17.0), f354b1aa5 (17.0), 056d7c023 (17.0)
Description
Qt Creator replace tabs with spaces disregarding all the respective settings.
I have tabs set in Text Editor/Behavior (Tabs Only, Auto detect disabled) and in Qt Quick/Formatter. Tried all three options there, and even though formatters behave as expected and format with tabs (context menu action "Reformat Document"), the "Auto-Indent selection" action replaces all of them with spaces, an so does saving the file.
Blacklisting *.qml files in the Text Editor/Behaviour/Cleanups upon saving helps to a certain extent, but typing in .qml still inserts spaces left and right.
Attachments
Issue Links
- duplicates
-
QTCREATORBUG-32963 [Reg 16.0.1 -> 17.0.0b1] Custom Qt Quick code style is now ignored
-
- Closed
-
For Gerrit Dashboard: QTCREATORBUG-32951 | ||||||
---|---|---|---|---|---|---|
# | 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 |