What is the .idea folder?

只谈情不闲聊 提交于 2020-01-11 14:48:54

问题


When I'm trying to create a project in Jetbrains Webstorm a folder gets created called .idea. Is it okay if I delete this? Will it affect my project?


回答1:


When you use the Intellij IDE, all the project specific settings for project are stored under the .idea folder

Project settings are stored with each specific project as a set of xml files under the .idea folder. If you specify the default project settings, these settings will be automatically used for each newly created project.

Check this documentation for the IDE settings and here is their recommendation on Source Control and an example .gitignore file.

Note: If you are using git or some version control system, you might want to set this folder "ignore". Example - for git, add this directory to the .gitignore. This way, the application is not an IDE specific.




回答2:


There is no problem in deleting this. It's not only WebStorm IDE create this file but also phpStorm also do and all of jetbrains's IDE do so.

It is safe to delete it but if your project is from gitlab or github then you will see a warning.



来源:https://stackoverflow.com/questions/17049416/what-is-the-idea-folder

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!