Hide files from the / build directory in the class / file action navigation

One of the most productive actions in Android Studio is moving. The problem is that it shows so many useless files. It is sometimes difficult to find the class / file you are looking for.

Take the image below as an example. If you are looking for AndroidManifest.xml in module b , you need to scroll down the list to find the file you need.

enter image description here

Is there a way to filter what this dialog shows, in particular to exclude some directories from the results? All files in the /build directory are completely useless.

I know that I can filter file types, but that helps a little.

+5
source share
1 answer

Mark the build folder as excluded:

File > Project Settings > Modules > Sources > Mark as Excluded (red icon)

Alternatively, right-click on your build folder and select Mark Directory as > Excluded .

Excluded folders (shown as rootExcluded) are those that IntelliJ IDEA "partially ignores." Very limited coding assistance is provided for files in excluded folders. Classes contained in excluded folders are not displayed in the list of code completion sentences; links to such classes are displayed as unresolved in the editor. When searching for IntelliJ IDEA does not scan excluded folders, etc.

A source

Another way is to define the custom scope described here .

0
source

All Articles