什么是.idea文件夹? [英] What is the .idea folder?

查看:1942
本文介绍了什么是.idea文件夹?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试在Jetbrains Webstorm中创建项目时,会创建一个名为 .idea 的文件夹。如果我删除它可以吗?它会影响我的项目吗?

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?

推荐答案

当你使用 Intellij IDE ,项目的所有项目特定设置都存储在 .idea 文件夹

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

项目设置与每个特定项目一起存储为.idea文件夹下的一组xml
文件。如果您指定默认项目
设置,这些设置将自动用于每个新建的
项目。

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.

查看此文档以了解IDE设置和这是他们对源代码管理的建议和一个示例.gitignore文件。

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

注意:如果您使用的是git或某些版本控制系统,则可能需要将此文件夹设置为ignore。
示例 - 对于git,将此目录添加到 .gitignore 。这样,应用程序不是特定于IDE的。

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.

这篇关于什么是.idea文件夹?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆