Auto ignore .idea
Answered
I am using VSTS and am running into a couple of annoying issues.
1) If I load the whole entire project (Including main and branches) called MyProject, set my vcs to tfvc, then open version 1.0.0 and then 1.0.2, I have to enable VCS again each time
2) Every time I load a project it creates a new .idea. I then have to:
a) Add it to the ignore list
b) Exclude it
Is there a way to set up my entire intellij, at least under "MyProject", so that I don't have to do 1, 2a, or 2b every time I load a new version (file open and click directory I want to open)?
Please sign in to leave a comment.
First of all, it is not recommended to ignore .idea folder - it stores important project configuration (vcs mappings, modules, run configurations, etc) - see https://intellij-support.jetbrains.com/hc/en-us/articles/206544839-How-to-manage-projects-under-Version-Control-Systems
The issue is not clear though. What does "then open version 1.0.0 and then 1.0.2" mean?
If you mean that you open some subfolders as a separate project it is completely expected new .idea folder is created - because a new project is created. And there is no way of disabling this - a project is needed to work with sources, and it needs some config files.
Btw, there is no need to exclude the folder either, but if you just don't want to see it the project tree, you could add it to Ignored files and folders in Preferences | Editor | File Types