How to prevent tabs from being written as spaces?
-
Hello,
It seemed to work before.
When I am working on a .h file or .cpp file, when I press on the tab key on the keyboard, it writes 4 white spaces.How can this be fixed? Why doesn’t it write a tab character?
The Options dialog box seems to have been moved from the Tools menu to the Edit menu.
OS: Kubuntu 22.04
Qt Creator 10.0.0-beta2 (9.0.83)I think I had version 9.0 before.
-
C Christian Ehrlicher moved this topic from General and Desktop on
-
This is a simple setting in QtCreator: Settings -> C++ -> Code Style -> Edit -> General
-
This is a simple setting in QtCreator: Settings -> C++ -> Code Style -> Edit -> General
is it suppose to be like this?
It doesn't seem to have an effect. -
This is a simple setting in QtCreator: Settings -> C++ -> Code Style -> Edit -> General
@Christian-Ehrlicher I used the Qt Maintenance tool to remove the preview version, (10.0.0-beta2 ) and now I am back to 9.0.2.
Thank the lord. It is working now. I have my tabs back.
-
-
@Christian-Ehrlicher I used the Qt Maintenance tool to remove the preview version, (10.0.0-beta2 ) and now I am back to 9.0.2.
Thank the lord. It is working now. I have my tabs back.
@stretchthebits
Up to you but you might like to report this to ensure the forthcoming release has it right. -
@Christian-Ehrlicher I used the Qt Maintenance tool to remove the preview version, (10.0.0-beta2 ) and now I am back to 9.0.2.
Thank the lord. It is working now. I have my tabs back.
@stretchthebits Change "Tabs Only" in "Tab policy" ro "Spaces Only".
-
@stretchthebits Change "Tabs Only" in "Tab policy" ro "Spaces Only".
@jsulm I had it as Tabs only but that was for Qt Creator version 10....beta.
So, I rolled back to the LTS version, 9.0.2 and it works fine.The GUI is ls also a bit confusing for me.
There seems to be multiple locations where they have you configure this.
If you change one place to tabs only, the other things stay as "spaces".I think I need a Qt Creator for dummies version.