diff --git a/development/cpp/configuring_an_ide.rst b/development/cpp/configuring_an_ide.rst index 3120f9474..59c321e89 100644 --- a/development/cpp/configuring_an_ide.rst +++ b/development/cpp/configuring_an_ide.rst @@ -16,6 +16,7 @@ Development Environment), here are setup instructions for some popular ones: - :ref:`Visual Studio ` (Windows) - :ref:`Visual Studio Code` (all desktop platforms) - :ref:`Android Studio` (all desktop platforms) +- :ref:`CLion` (all desktop platforms) It is possible to use other IDEs, but their setup is not documented yet. @@ -316,3 +317,26 @@ Project setup - Navigate to ``/platform/android/java`` and select the ``settings.gradle`` gradle file. - Android Studio will import and index the project. - To build the project, follow the :ref:`compiling instructions `. + +.. _doc_configuring_an_ide_clion: + +CLion +----- + +`CLion `_ is a commercial IDE for C++. It requires a ``CMakeLists.txt`` file as a project file, which is problematic for Godot which uses the SCons buildsystem and not CMake. However, there is a ``CMakeLists.txt`` configuration for :ref:`Android Studio ` which can also be used by CLion. + +- Choose *File* -> *Open*. + +- Navigation to your Godot Git clone, and select the folder ``platform/android/java/lib`` (the ``CMakeLists.txt`` file is located there). Select the folder, not the ``CMakeLists.txt file``. Then click *Ok*. + +.. image:: img/clion_1_open.png + +- If this popup window appears, select *This window* to open the project. + +.. image:: img/clion_2_this_window.png + +- Choose *Tools* -> *CMake* -> *Change Project Root* and select the root Godot folder. + +.. image:: img/clion_3_change_project_root.png + +- You should be now be able to see all the project files. Autocomplete should work, when the project finish indexing. diff --git a/development/cpp/img/clion_1_open.png b/development/cpp/img/clion_1_open.png new file mode 100644 index 000000000..be29e192c Binary files /dev/null and b/development/cpp/img/clion_1_open.png differ diff --git a/development/cpp/img/clion_2_this_window.png b/development/cpp/img/clion_2_this_window.png new file mode 100644 index 000000000..585bc60a9 Binary files /dev/null and b/development/cpp/img/clion_2_this_window.png differ diff --git a/development/cpp/img/clion_3_change_project_root.png b/development/cpp/img/clion_3_change_project_root.png new file mode 100644 index 000000000..d5be3a2c2 Binary files /dev/null and b/development/cpp/img/clion_3_change_project_root.png differ