Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can one remove .class files from open file list in IntelliJ IDEA?

I have an Android project in IntelliJ IDEA. When I hit Ctrl+Shift+N to open a file, the drop-down of file names includes both .class and .java files. The .class files are in the bin directory of my project.

I can see wanting .class files for external libraries (like a linked in jar file) but I don't want them for my own sources. I'm new to IDEA and assume this is a simple thing I just didn't do right, but I can't seem find it and it's driving me crazy. Any ideas?

like image 404
SirPentor Avatar asked Feb 07 '13 23:02

SirPentor


People also ask

How do I ignore .class files in IntelliJ?

1 Answer. Show activity on this post. deselect "Class" and they should not appear anymore.

Where does IntelliJ store .class files?

class files by going to the out/production/main folders from the home directory of the project.

How do I delete a class in IntelliJ?

Select an item you want to delete. Select Refactor | Safe Delete from the main or context menu or press Alt+Delete . In the dialog that opens, select necessary options and click OK. If IntelliJ IDEA encountered potential problems, it displays the Usages Detected dialog.

Can I delete class files?

When necessary, you can delete files from student class folders. You can delete files that were sent to the class or collected from the class. Class must be in session for you to delete files.


2 Answers

Set bin directory as Excluded, normally IDEA excludes all the output folders by default and doesn't show you any .class files.

Exclude

like image 93
CrazyCoder Avatar answered Sep 25 '22 18:09

CrazyCoder


For Android Studio, there is a blue triangle when 'enter file name' (CMD + SHIFT + O) window is active. Clicking on the triangle brings down a drop down list of file types to be included/excluded in search

like image 37
Eugene Avatar answered Sep 23 '22 18:09

Eugene