问题
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