[英]Import settings in Intellij IDEA, PhpStorm or WebStorm
What is the difference between: 有什么区别:
<path>
) (when install) 从以前的版本( <path>
)导入我的设置(安装时) File | Import settings
) 从JAR存档File | Import settings
( File | Import settings
) For Import my settings from a previous version (<path>)
-- what are the necessary files? 对于Import my settings from a previous version (<path>)
- 必要的文件是什么?
config
? 只有目录config
? system
? 那么目录system
呢? Import my settings from a previous version (
<path>
) (when install) 从以前的版本(<path>
)导入我的设置(安装时)
This option is available (and offered automatically) when new IDE version is launched (mainly major versions only) and no settings found for this version. 启动新IDE版本时(仅主要版本)并且未找到此版本的设置,此选项可用(并自动提供)。 It's not possible to bring this dialog manually, unless you delete your settings for current version. 除非您删除当前版本的设置,否则无法手动启用此对话框。
If you choose to use it IDE will just copy all files from config
folder (Windows/Linux -- on Mac it uses different folder structure) from older version into new one. 如果您选择使用它,IDE将只将所有文件从config
文件夹(Windows / Linux - 在Mac上使用不同的文件夹结构)从旧版本复制到新版本。
Import settings from a JAR archive (
File | Import settings
) 从JAR存档File | Import settings
(File | Import settings
)
You can do this at any time (as long as you have exported your setting before using similar action). 您可以随时执行此操作(只要您在使用类似操作之前导出了设置)。
This option can be used: 可以使用此选项:
The possible downside (danger) of using this functionality is that devs may simply forget (bug/regression) to include certain config files when exporting settings ( File | Export settings
) -- I remember at least 2 complaints in the last 2-3 years. 使用此功能的可能缺点(危险)是开发人员在导出设置时可能会忘记(错误/回归)包含某些配置文件( File | Export settings
) - 我记得在过去的2 - 3年中至少有2个投诉。
I personally always use first option. 我个人总是使用第一个选项。
For "Import my settings from a previous version (
<path>
)" -- what are the necessary files? 对于“从以前的版本(<path>
)导入我的设置” - 有哪些必要的文件?
It depends on your OS. 这取决于您的操作系统。
On Linux/Windows config
folder is enough; 在Linux / Windows config
文件夹就足够了; everything inside system
can be re-generated (indexes/caches/etc) and gets emptied from time to time anyway ( File | Clear caches...
) and definitely not needed when upgrading your IDE to a newer version. system
内部的所有内容都可以重新生成(索引/缓存/等)并且不时地清空( File | Clear caches...
),并且在将IDE升级到更新版本时绝对不需要。
Mac uses different storage locations where config/plugins/etc are located in few different but standard locations. Mac使用不同的存储位置,其中config / plugins / etc位于少数不同但标准的位置。
More on this: Directories used by the IDE to store settings, caches, plugins and logs 更多相关内容: IDE用于存储设置,缓存,插件和日志的目录
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.