Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Ignore Java .class files in IntelliJ navigate to file dialog?

In IntellJ, I can type ++N or select Navigate > File... to open the navigate to file dialog.

In my project, some dependencies bring in .class files, and when I search for their .java counterparts, the dialog gets polluted with the .class file results as well.

How can I make this dialog ignore all .class files?

like image 444
Cory Klein Avatar asked Aug 11 '14 15:08

Cory Klein


People also ask

How do I ignore a class in IntelliJ?

So the easiest way to exclude your test is to create a third source folder, call it /ignore, and not mark it as a source folder in IntelliJ. You can then drop any file you don't want to include in your compilation there temporarily, and drag it back to its original folder when you want to continue working on it.

Where does IntelliJ store .class files?

class files. Inside the output directory, IntelliJ IDEA also creates subdirectories for each of your modules. The default paths for subdirectories are as follows: Sources: <ProjectFolder>/out/production/<ModuleName>

How do I open a .class file in IntelliJ?

You can automatically locate a class in the Project tool window. If the class is opened in the editor, press Alt+F1 to open the Select In popup. In the popup, select Project View and press Enter . IntelliJ IDEA locates your target in the Project tool window.


1 Answers

Use the filter

enter image description here

deselect "Class" and they should not appear anymore.

like image 192
Marco Acierno Avatar answered Oct 21 '22 23:10

Marco Acierno