Skip to content

Commit 41bf5b0

Browse files
authored
Merge pull request #8540 from awardell/clion_vs_toolchain
Add note for Windows CLion users to add Visual Studio toolchain.
2 parents 1417cfb + f11588a commit 41bf5b0

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

contributing/development/configuring_an_ide/clion.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,19 @@ CLion can import a project's `compilation database file <https://clang.llvm.org/
1717

1818
Then, open the Godot root directory with CLion. CLion will import the compilation database, index the codebase, and provide autocompletion and other advanced code navigation and refactoring functionality.
1919

20+
.. note:: Windows Users:
21+
22+
For ``compile_commands.json`` to load correctly in CLion, you must first have the Visual Studio toolchain configured for CLion.
23+
24+
- Navigate to **Preferences > Build, Execution, Deployment > Toolchains**
25+
- Click the **+** button and select ``Visual Studio``
26+
- CLion will attempt to detect your Visual Studio installation. If it is unsuccessful, use the file icon to the right of ``Toolset:`` to select the directory with your Visual Studio installation.
27+
28+
You may exit and reload CLion and it will reload ``compile_commands.json``
29+
30+
.. figure:: img/clion_visual_studio_toolchain.webp
31+
:align: center
32+
2033
Compiling and debugging the project
2134
-----------------------------------
2235

0 commit comments

Comments
 (0)