可以从IntelliJ IDEA中的打开文件列表中删除.class文件吗? [英] Can one remove .class files from open file list in IntelliJ IDEA?

查看:5111
本文介绍了可以从IntelliJ IDEA中的打开文件列表中删除.class文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在IntelliJ IDEA中有一个Android项目。当我按 Ctrl + Shift + N 打开文件时,文件名的下拉列表包括.class和.java文件。 .class文件位于我项目的bin目录中。

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.

我可以看到外部库需要的.class文件(比如jar文件中的链接)但我不知道我希望他们为我自己的来源。我是IDEA的新手,并认为这是一件很简单的事情我只是做得不对,但我似乎无法找到它并且它让我发疯。有什么想法吗?

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?

推荐答案

bin 目录设为排除,通常IDEA默认排除所有输出文件夹,并且不显示任何 .class 文件。

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

这篇关于可以从IntelliJ IDEA中的打开文件列表中删除.class文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆