简体   繁体   English

在Intellij IDEA,PhpStorm或WebStorm中导入设置

[英]Import settings in Intellij IDEA, PhpStorm or WebStorm

  1. What is the difference between: 有什么区别:

    • Import my settings from a previous version ( <path> ) (when install) 从以前的版本( <path> )导入我的设置(安装时)
    • Import settings from a JAR archive ( File | Import settings ) 从JAR存档File | Import settingsFile | Import settings
  2. For Import my settings from a previous version (<path>) -- what are the necessary files? 对于Import my settings from a previous version (<path>) - 必要的文件是什么?

    • only directory config ? 只有目录config
    • what about directory 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 settingsFile | 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: 可以使用此选项:

  • for backup purposes (manual, but easy to use for ordinary user); 用于备份目的(手动,但普通用户易于使用);
  • to transfer settings between different IDE versions and different computers/OS; 在不同的IDE版本和不同的计算机/ OS之间传输设置;
  • to import 3rd party settings (eg custom color schemas) without searching where to put them in actual file system (as paths differ between OS and IDE/OS versions). 导入第三方设置(例如自定义颜色模式)而不搜索将它们放在实际文件系统中的位置(因为OS和IDE / OS版本之间的路径不同)。

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.

相关问题 intellij IDEA 导入设置 - intellij IDEA import settings 在Webstorm,PHPStorm,IntelliJ IDEA中自动中断行注释 - Automatic breaking of line comments in Webstorm, PHPStorm, IntelliJ IDEA 正则表达式在 PhpStorm/Webstorm (Intellij-IDEA) 中用小写字母替换大写 - Regex replace uppercase with lowercase letters in PhpStorm/Webstorm (Intellij-IDEA) PHPStorm / Intellij - 导出/导入数据库设置 - PHPStorm / Intellij - Export / Import Database Settings IntelliJ IDEA / WebStorm IDE:如何直接跳转到特定设置屏幕? - IntelliJ IDEA / WebStorm IDE: how to jump right to specific settings screen? IntelliJ IDEA:如何导入版权设置? - IntelliJ IDEA: How to import Copyright settings? AngularJS 2.0 TypeScript Intellij想法(或webstorm) - ES6导入语法 - AngularJS 2.0 TypeScript Intellij idea (or webstorm) - ES6 import syntax 共享webstorm和intellij设置 - Share webstorm and intellij settings 运行 React Native 时如何在 IntelliJ Idea (PhpStorm/WebStorm) 中预配置调试日志级别过滤器 - How to preconfigure the debug log level filter in IntelliJ Idea (PhpStorm/WebStorm) when running React Native IntelliJ IDE(IDEA,PhpStorm,WebStorm):在“更改日志”工具窗口中聚焦“过滤器”字段的快捷方式 - IntelliJ IDE (IDEA, PhpStorm, WebStorm): Shortcut for focusing Filter field in e.g. Change Log tool window
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM