mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-09-03 18:14:53 +03:00
Merge pull request #12230 from LittleWhite-tb/qt-creator-ide-configuration-update
Update QtCreator configuration guide
This commit is contained in:
Binary file not shown.
|
Before Width: | Height: | Size: 36 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 46 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 49 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 16 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 18 KiB |
@@ -61,7 +61,7 @@ Importing the project
|
||||
| Arguments | See :ref:`doc_introduction_to_the_buildsystem` for a full list of arguments. |
|
||||
+-----------+------------------------------------------------------------------------------+
|
||||
|
||||
.. figure:: img/qtcreator-set-scons-command.png
|
||||
.. figure:: img/qtcreator-set-scons-command.webp
|
||||
:figclass: figure-w480
|
||||
:align: center
|
||||
|
||||
@@ -92,21 +92,16 @@ Code style configuration
|
||||
------------------------
|
||||
|
||||
Developers must follow the project's `code style <https://contributing.godotengine.org/en/latest/engine/guidelines/code_style.html>`__
|
||||
and the IDE should help them follow it. By default, Qt Creator uses spaces
|
||||
for indentation which doesn't match the Godot code style guidelines. You can
|
||||
change this behavior by changing the **Code Style** in **Tools > Options > C++**.
|
||||
and the IDE should help them follow it.
|
||||
|
||||
.. figure:: img/qtcreator-options-cpp.png
|
||||
- Open **Preferences > C++ > Code Style**.
|
||||
- Set the **Formatting mode** to **Full formatting** to instruct Qt Creator to use the ``.clang-format`` file supplied in Godot's root folder:
|
||||
|
||||
.. figure:: img/qtcreator-options-cpp.webp
|
||||
:figclass: figure-w480
|
||||
:align: center
|
||||
|
||||
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**.
|
||||
|
||||
.. figure:: img/qtcreator-edit-codestyle.png
|
||||
:figclass: figure-w480
|
||||
:align: center
|
||||
- Specify when you want ``clang-format`` to run (either while typing or when you saving the file). It is recommended to enable formatting on save at least.
|
||||
|
||||
If you run into any issues, ask for help in one of
|
||||
`Godot's community channels <https://godotengine.org/community>`__.
|
||||
|
||||
Reference in New Issue
Block a user