Qt Creator 10.0.0 not following indent settings
-
I'm attempting to change the default tab and indent size settings from the Qt default 4 and 4 to 2 and 2. I go to Edit -> Preferences -> C++ -> Current Settings and copy Qt [built-in], then change tab and indent size under the General tab to 2. I click Apply then OK, but my tabs and indents are still 4 spaces wide.
I've tried restarting Qt Creator to no avail. I've verified that the settings match what I had set previously in Qt Creator 5.0.3 that do work.
Any advice on how to further troubleshoot?
-
@flatland3r update Qt Creator to the newest version. But also, go to Preferences -> Text Editor -> Behavior -> Tabs And Indentation and change the settings there, it should help.
-
@sierdzio Thanks for the reply. I went ahead and updated to 12.0.1 and verified that Preferences -> Text Editor -> Behavior -> Tabs and Indentation is also set to:
Spaces Only
Tab size: 2
Indent size: 2
Align continuation lines: With SpacesI also tried changing these settings under Qt Quick -> Code Style. Anything else I can try?
-
@flatland3r said in Qt Creator 10.0.0 not following indent settings:
go to Edit -> Preferences -> C++ -> Current Settings and copy Qt [built-in],
just to double check: this new copied profile is selected as active, right?
I don't have other ideas, sorry.