Intellij打开文件资源(忽略目标文件夹) [英] Intellij Open File Resource ( Ignore target folder )
问题描述
当我使用命令+ shift + o命令时,我会看到以下弹出窗口:
When I use the command + shift + o command I get this popup:
问题在于,在Java EE应用程序中,目标文件夹中将存在重复项.有时我开始编辑错误的文件.我不想列出它们,请参见图片.有没有一种排除文件夹的方法?
The problem is that in a Java EE applicaton there will be duplicates in the target folder. Sometimes I start editing the wrong file. I do not want them listed, see picture. Is there a way to exclude folders?
另外,请注意:
有时intellij认为与其他类匹配的方法调用会以错误突出显示.无法忽略错误(无济于事),也无法手动指向正确的方法或类.有办法解决这个问题吗?
Sometimes intellij will highlight as error a method call, thinking it matches some other class. Not possible to ignore error ( doesn't help ), and no way of pointing the right method or class manually. Is there a way to fix this?
推荐答案
确保在Project Structure | Modules
中排除了target
文件夹:
Make sure that the target
folder is excluded in the Project Structure | Modules
:
由于它是一个Maven项目(我认为是这样),因此应该自动将其排除.
It should have been excluded automatically since it is a maven project (I assume).
这篇关于Intellij打开文件资源(忽略目标文件夹)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!