PhpStorm - 无法添加主题

PhpStorm - Can't add a theme

我是学生,我获得了免费的最新版本 PhpStorm 9(内部版本 PS-141.1912)。我试图向 PhpStorm 添加主题和配色方案,所以我将我的主题(.icls 文件)放在 C:\Users\me\.WebIde90\colors 文件夹中:


(来源:noelshack.com

然后我重新启动了 PhpStorm,但是我看不到我的主题:


(来源:noelshack.com

根据您的屏幕截图和信息,您已将它们放在 ~\.WebIde90\colors 中,而它应该是 ~\.WebIde90\config\colors(其中 ~ 是您的用户主文件夹 -- 通常为 C:\Users\USERNAME).


总的来说:
应将具有颜色模式 (*.icls) 的文件放入适当的文件夹中,然后如果到那时它是 运行,则应重新启动 IDE(因为此类内容仅在启动时才会检查)。

  • Windows: C:\Users\USERNAME\.IDE_FOLDER\config\colors
  • Linux: ~/.IDE_FOLDER/config/colors
  • Mac: ~/Library/Preferences/IDE_FOLDER/colors

其中 IDE_FOLDER<ProductName><Version> -- 例如PhpStorm2016.2 最新稳定版 PhpStorm (2016.2.2)。

有关文件夹的更多信息:https://intellij-support.jetbrains.com/hc/en-us/articles/206544519-Directories-used-by-the-IDE-to-store-settings-caches-plugins-and-logs

P.S.
如果颜色模式作为 *.jar 文件出现,则使用 File | Import Setting...


另请注意,这些编辑器主题主要用于语法高亮显示,可以在 Settings/Preferences | Editor | Colors & Fonts.

处更改

这与 GUI 主题(也称为 LAF -- 外观和感觉 -- 为实际的 GUI 元素设置样式)无关,它是一个单独的东西,可在 Settings/Preferences | Appearance & Behavior | Appearance.

P.S.
而不是进入 Settings/Preferences .. 您可以使用 View | Quick Switch Scheme... 在各种模式之间快速切换 (colors/keymaps/code styles/etc.)

在 PhpStorm 2016.1 中它将是 ~\.PhpStorm2016.1\config\colors(其中 ~ 是您的用户主文件夹 - 通常是 C:\Users\USERNAME)。