I want tab to insert 2 spaces. All other solutions seem to be references an older version of Qt Creator.
Tools -> Options -> Text Editor -> Behaviour -> Tabs and Indentation
No 'Options' option exists in the dropdown menu.
Tools -> Options -> C++ -> Code Styles -> Edit
'Code Styles' does NOT exist in that path.
Qt Creator -> Preferences -> Behavior > Text Editor
This seems to be the appropriate place to modify settings for the whole IDE, but they don't seem to be getting saved to the project.
Qt 5.2.1
To automatically indent the highlighted text, select Auto-indent Selection or press Ctrl+I. To automatically format the highlighted text, select Auto-format Selection or press Ctrl+;. To adjust the wrapping of the selected paragraph, select Rewrap Paragraph or press Ctrl+E followed by R.
To switch themes, select Edit > Preferences > Environment, and then select a theme in the Theme field. You can use the Qt Creator text and code editors with your favorite color scheme that defines how code elements are highlighted and which background color is used.
There are "Project Settings" that have precedence over the global settings under Tools -> Options -> Text Editor -> ...
These settings can be found in the Projects "UI section" and you have to define a custom "Code Style" for this:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With