diff --git a/development/cpp/configuring_an_ide.rst b/development/cpp/configuring_an_ide.rst index 7c11701c1..f1c0dfbd1 100644 --- a/development/cpp/configuring_an_ide.rst +++ b/development/cpp/configuring_an_ide.rst @@ -94,6 +94,22 @@ clicking the "Apply Filter" button. A simple click on "Ok" and you're ready to c .. image:: img/qtcreator-edit-files-dialog.png +Code style configuration +^^^^^^^^^^^^^^^^^^^^^^^^ + +Developers must follow the project's :ref:`code style ` +and IDE should help them to do it. By default, Qt Creator does use spaces for indentation +which is incorrect for Godot project. You can change this behavior by +changing the "Code Style" in *Options* -> *C++*. + +.. image:: img/qtcreator-options-cpp.png + +Click on *Edit* to change the current settings, then click on *Copy Built-in Code Style* button +to set a new code style. Set a name for it (e.g. Godot) and change the Tab policy +to be *Tabs Only*. + +.. image:: img/qtcreator-edit-codestyle.png + .. _doc_configuring_an_ide_kdevelop: Kdevelop diff --git a/development/cpp/img/qtcreator-edit-codestyle.png b/development/cpp/img/qtcreator-edit-codestyle.png new file mode 100644 index 000000000..882fe3fab Binary files /dev/null and b/development/cpp/img/qtcreator-edit-codestyle.png differ diff --git a/development/cpp/img/qtcreator-options-cpp.png b/development/cpp/img/qtcreator-options-cpp.png new file mode 100644 index 000000000..18957ae0f Binary files /dev/null and b/development/cpp/img/qtcreator-options-cpp.png differ