How can I prevent Qt Creator 2.4.1 from replacing tabs with spaces?
I have chosen ‘Tabs only’ on ‘Tab policy’ but Qt Creator still has this annoying behaviour
In settings, go to C++
, and on the Code Style
tab, press the Edit
button.
In the new window, you will have a General Tab
which allows for C++-specific code indentation settings.
Set Tab policy
to Tabs only
and Align continuation lines
(if 2.4.1 already had that, not sure) to With Regular Indent
and you should be good.
Note: The same can be done for Qt Quick
.