简体   繁体   English

忽略intellij上的.idea /文件

[英]Ignore .idea/ files on intellij

I am working with the intellij IDE, my problem is that always are being added some .idea/ folder files in my intellij after compilation. 我正在使用intellij IDE,我的问题是编译后总是在我的intellij中添加一些.idea /文件夹文件。 I had excluded these directory sice: Settings > Version Control > Ignored Files: 我排除了以下目录:设置>版本控制>忽略的文件:

忽略文件intellij

But it seems it is not working, because I continue seeing these files. 但是似乎不起作用,因为我继续看到这些文件。 I am the only one of my team who has this problem, so it should be an IDE problem. 我是团队中唯一遇到此问题的人,因此应该是IDE问题。

在此处输入图片说明

I'm sure you already know this, but the .idea directory is actually just the IDE settings generated by IntelliJ IDEA. 我确定您已经知道这一点,但是.idea目录实际上只是IntelliJ IDEA生成的IDE设置。 If you're talking about source control, you'll need to add a rule to ignore that folder. 如果您正在谈论源代码管理,则需要添加一条规则来忽略该文件夹。

For git, you'll want a .gitignore file on the project level, and add the following to the file: 对于git,您需要在项目级别使用.gitignore文件,并将以下内容添加到该文件中:

.idea/

If you want to check what is being ignored currently, or add some easy context menus for adding things to your ignore file, install the ".ignore" plugin for IntelliJ-IDEA. 如果要检查当前正在忽略的内容,或添加一些简单的上下文菜单以将内容添加到忽略文件中,请为IntelliJ-IDEA安装“ .ignore”插件。 This plugin will even let you hide these ignored files, since your IDE will always generate this settings folder in the project directory. 这个插件甚至可以让您隐藏这些被忽略的文件,因为您的IDE将始终在项目目录中生成此设置文件夹。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM