in IDE by (12.7k points)
0 like 0 dislike

In Qt Creator "Tab size" and "Indent size" options do not work! How I can to set needed tab size for cpp files in Qt Creator IDE?

When I update tab size and indent size settings in Behavior tab, changes never take effect in code editor. Tabs are always set to 4 spaces. I want to set it to 2, but Qt Creator will not let me, it will not honor settings I specify.

qt creator tab size for cpp
qt creator set tab indent for cpp
qt creator tab size do not work
qt creator indent size do not work

1 Answer

0 like 0 dislike
by (12.7k points)

In Qt Creator IDE tab settings are for non-code editors, i.e. it for plain text only. For code editors, including C++ editor, you must to configure your coding style settings in C++ item of left menu of Qt Quick options. For reducing confusion in version 2.8 (and next) has some text explaining that in the editor tab settings.

Your answer

Try to answer the question as detailed as possible.
Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please log in or register.