I am trying to exclude some directories from Pycharm's project index as they are recursive symbolic links. I have excluded the directories and invalidated the caches and restarted but PyCharm still indexes these excluded directories. It does not result in duplicate results in my search results etc. but indexing takes so much longer.
Is there a way to exclude these directories from being indexed?
Besides @FooBarUser's suggestion, you can go to
Preferences->Editor->File Types
and here you have a box where you can add the files and folders you want to exclude from your project.The folders and files that you include will not be shown in your project.
In PyCharm 2017.2.4 you can
cmd+shift+A
and start typing project structure... theproject structure
option should showed up then press<enter>
. Then you can highlight the folder you want to exclude and mark it asExclude
. This is useful when you want to search for files withcmd+shift+O
and you don't wantvenv
files to showed up.enter image description here
if i am right: File | Settings | project structure and select the folders you need and click exlcuded.
from documentation