![]() There, uncheck all the directories you don't want included in your search.Go to Settings -> Languages & Frameworks -> Javascript -> Libraries.Hopefully this works, but if it doesn't, and you're using Javascript, continue: First, of course, exclude the directory from your project.There might be something similar available for other languages. I found something that does work, though. For instanceįile:src/main/java//*&!file:src/main/java/my//* will exclude all files in my folder.Ī number of answers work well for older versions of IntelliJ, but in 2020.2, and possibly other recent versions, I keep seeing excluded folders in my search results. ![]() Using patterns is another way to exclude files and folders. You can use Patterns to define a scope which makes them even more powerful and future proof. Scopes can be used not only when searching but also in a bunch of other use cases in IntelliJ IDEA. You can check the JetBrains docs on Scopes for more info. When searching you can choose the effective scope by in Scope section in Find in Path dialog.Note that you can even include or exclude libraries your project is dependent on. You can first add everything by choosing the include recursively and then exclude one by one by choosing exclude or exclude recursively. Now you can include and exclude directories from this scope.Now click on the + button to add a new local custom scope.This is specifically useful because sometimes you just want to exclude a folder from your search and not from the whole project.Įdit -> Find -> Find in path or press Ctrl+ Shift+ F.Ĭhoose Custom in the Scope section and then choose ![]() One way to achieve your requirement (excluding files and folders from a search) is to define a custom scope. By defining a Scope when searching, you can include/exclude arbitrary files/folders from that scope.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |