For a large project with many dependencies e.g. in the node_modules/ folder, I noticed frequent CPU spikes because of Sublime indexing all the files in the folder.
I know I can hide files and folders using the folder_exclude_patterns setting, but I still want the folder to be visible in the sidebar.
How can I keep e.g. node_modules/ in the sidebar, but exclude it from indexing?
To exclude files from the index but keep them in the sidebar, use the
binary_file_patternssetting in your User Settings, for example:Make sure to copy the values from your
Settings - Defaultpreferences (here shown as"*.jpg"etc.), or you will start indexing binary files.