From f1c4a42840f1d137b4aa5b0606cbc16403993f64 Mon Sep 17 00:00:00 2001 From: Brian Gianforcaro Date: Mon, 3 May 2021 01:58:15 -0700 Subject: [PATCH] Documentation: Add a note about excluding the Build directory in CLion This was discussed a while back on discord, but no one got around to writing it down yet. --- Documentation/CLionConfiguration.md | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Documentation/CLionConfiguration.md b/Documentation/CLionConfiguration.md index 50745a788b..60c76039c0 100644 --- a/Documentation/CLionConfiguration.md +++ b/Documentation/CLionConfiguration.md @@ -9,6 +9,16 @@ and set the following fields: (Assuming you use `Ninja` as the build system and `Build Directory`: `Build/i686` +## Excluding Build Artifacts + +Source files are copied to the `Build` directory during the build, if you do not exclude them from CLion indexing they will show up +in search results. This is often confusing, unintuitive, and can result in your loosing changes you have made to files. To exclude +these files navigate to the `Project` tool window, right-click the `Build` folder and select `Mark Directory as | Excluded`. If you +want exclude Toolchain files as well, follow the same procedure with the following paths: +- `Toolchain/Local` +- `Toolchain/Tarballs` +- `Toolchain/Build` + ## Notes for WSL Users It is possible to set the embedded terminal in CLion to the one that your WSL distribution provides.