Details
-
Suggestion
-
Resolution: Incomplete
-
Not Evaluated
-
None
-
Qt Creator 4.1.0-beta1
-
None
-
Kubuntu 16.04, x86_64.
Description
QtCreator has two places where the user has to select the indentation mode: tabs or spaces. One place is in the Text Editor/Behavior tab and the other is in C++/Code Style settings. When these two settings are out of sync it is unclear what QtCreator will do (in my case, when the code style was using spaces and the text editor was using tabs - tabs were used) and in 50% cases it will do not what the user intended.
Besides the confusion, the two places make it unnecessarily complicated to change from one mode to the other e.g. when switching between projects with different coding policies. It's easy to forget to change the setting in one place and then suddenly discover that the code is mangled with incorrect indents all over it.
I suggest leaving indentation settings in only one place with an easy way of switching between the modes.