Details
-
Bug
-
Resolution: Done
-
P2: Important
-
Qt Creator 3.6.0-beta1
-
None
-
803cca408665a54b8b9ed2e0a651b9c82b95ad80
Description
- Start Qt Creator
- Set the e.g. indent size to 2:
- Menu: Tools > Options > C++ > Code Style > Edit... and set "Indent size" to "2"
- "Copy Built-in Code Style" if required.
- Create a *.qbs project (Wizard: Non-Qt Project > Plain C++ Application > Choose "qbs' as build system)
- The main.cpp file is opened and it is correctly indented.
- Re-indent the "cout" line with "Ctr+I" - two extra spaces are inserted although it's already correctly indented.
The same works fine with a qmake project.
Observations:
- For the qbs project, SessionManager::configureEditor will not find a project for the given file path if an editor is opened.
- For the qmake project, it does find the project and sets the appropriate settings.