Aleksej_Shherbak
Aleksej_Shherbak

Reputation: 3058

How to excluder a folder from search and indexing (JetBrains IDEs)?

The question is about Rider, but I hope this setting is similar for all Jet Brain's Ides.

I have several folders with js and css bundles. For example the folders are situated in wwwroot/buildjs and wwwroot/buildcss.

The problem is when I press Ctrl + Shift + F to find something in the solution or (that is worse) when I try to rename something with the help of refactoring instruments (Right click -> Refactor -> Rename) Rider tries to rename in the bundles too! It's very slow, and I don't need it! Could somebody tell me ho to exclude this folders?

I remember early I could do it with the help of Right click on the folder -> Tools (not sure but maybe) -> Exclude from index. But now I don't see this menu item.

Upvotes: 15

Views: 8718

Answers (1)

Vetras
Vetras

Reputation: 1999

The workaround that solved it for me was to:

  • right click the folder > Tools > Stop Index

This will not index the folder and so it won't appear on search results. I did this for each folder I have on the project.

I think this is an open bug: https://youtrack.jetbrains.com/issue/RIDER-2173

Upvotes: 25

Related Questions