How do I exclude directories from being indexed in CLion?
I have several GB of data being indexed that are slowing everything down.
In PyCharm I can just right-click on the directory, but I don't find this option on CLion.
To be more concrete, I have a project with the following structure:
release/
release/results
source/
build/
the directory release/results
contains several GB of data. CMakeList.txt
only contains the list of files inside source/
, however, the indexer is indexing the files inside release/results
.
As of CLion 1.5 (EAP for now), you can mark directories as either 'source', 'libraries' or 'excluded'.
See the full blog post describing the new feature:
Although CLion automatically excludes build directories from indexing, some users expect wider options. The same situation can happen when some folders are too big or located on network storage, making their indexing too expensive. To let CLion know that this is the case, you may want to manually exclude folders from indexing.