我在Mac上安装了Sublime Text 3的Soda主题,但不知道主题的实际文件和文件夹在哪里,这样我就可以查看主题文件并进行编辑,同时我也想调整一些主题中使用的图片。
根据Git文档,如果您要手动安装Soda到Sublime,则需将soda文件夹放入软件包目录,但是当我通过控制包安装Soda时,我没有看到Soda主题在软件包目录中。
我在Mac上安装了Sublime Text 3的Soda主题,但不知道主题的实际文件和文件夹在哪里,这样我就可以查看主题文件并进行编辑,同时我也想调整一些主题中使用的图片。
根据Git文档,如果您要手动安装Soda到Sublime,则需将soda文件夹放入软件包目录,但是当我通过控制包安装Soda时,我没有看到Soda主题在软件包目录中。
.sublime-package
格式(基本上是一个zip文件)。这些包存储在Installed Packages
文件夹中,与Packages
文件夹并列。如果你想使用它们,我强烈建议安装由@skuroda提供的PackageResourceViewer
插件。通过Package Control进行安装。
安装完成后,使用⌘⇧P打开命令面板,输入prv
以获取PackageResourceViewer选项。选择Extract Package
,导航到Theme - Soda
,按Enter,然后您可以开始了——Packages/Theme - Soda
目录现在应该已经存在,并包含Github repo中的所有文件。现在你可能最感兴趣的是.sublime-theme
文件。
愉快地玩耍吧!
install PackageResourceViewer using Package Control
Go to Preferences->Package Settings->PackageResourceViewer->Setting-User. copy paste the following 3 lines,save and close it.
{
"single_command": false
}
press Ctrl+shift+p to open Package Control and select PackageResourceViewer: Edit Package Resource from the list. Find the package you want to edit and click on it. In my case, I want to edit a theme which is installed via ColorSublime Package, So I selected that theme.
go to view menu select 'Show Console' and run following command to reset the theme.
view.settings().erase("color_scheme")
open Preferences->Settings and delete the "color_scheme" attribute and its value from the settings file and close it. Again select the color theme from Preferences->Color scheme. Now you should able to see the changes reflected which you made in the theme package.
你可以按照以下步骤进行操作。
~/Library/Application Support/Sublime Text 2/Packages/Color Scheme - Default
文件夹中提取Soda主题~/Library/Application Support/Sublime Text 2/Packages/Color Scheme - Default
中放入到Sublime Text 3的~/Library/Application Support/Sublime Text 3/Packages/THEMES
文件夹。
Soda Dark 3.sublime-theme
。ST2也是一样,名称为Soda Dark.sublime-theme
。在用户首选项中,设置"theme": "themename.sublime-theme"
,例如"theme": "Soda Dark 3.sublime-theme"
。保存用户首选项,重新启动Sublime,新主题将被激活。 - MattDMo