本文介绍了Sublime Text 3 系统包位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

ST3 中的系统包在哪里?我很清楚这两个:

  • ~/Library/Application Support/Sublime Text 3/Packages
  • ~/Library/Application Support/Sublime Text 3/Installed Packages

但是我找不到诸如 HTML 或 PHP 之类的包所在的位置.这些是我要编辑的系统包.我看过很多文章,建议我将默认包(例如 HTML 包)复制到我的包"目录中,然后按照我喜欢的方式对其进行编辑.我就是找不到要复制的包...

But I can't find where packages such as HTML or PHP are located. These are system packages that I want to edit. I've seen a number of articles suggesting that I copy the default package, let's say the HTML package for example, to my 'Packages' directory and edit it how I like. I just can't find the package to copy...

我运行的是 OSX 10.8.5 (Mountain Lion),ST3 Build 3047.

I'm running OSX 10.8.5 (Mountain Lion), ST3 Build 3047.

谢谢!

推荐答案

OS X 中的原始包位于 /Applications/Sublime Text.app/Contents/MacOS/Packages.如果您打算对它们的内容进行鬼混,我强烈建议您使用 PackageResourceViewer 插件.它在幕后执行所有移动、解压缩和重命名操作,如果您设置 "single_command": false 选项,您将在命令面板中获得您需要的所有选项.我再怎么推荐也不为过,它让我的生活变得如此轻松!

Pristine packages in OS X are located in /Applications/Sublime Text.app/Contents/MacOS/Packages. If you're going to be fooling around with the contents of them, I very strongly recommend using the PackageResourceViewer plugin. It does all the moving, unzipping, and renaming behind the scenes, and if you set the "single_command": false option you'll get all the options you need in the Command Palette. I can't recommend it enough, it's made my life so much easier!

(不,不是我写的...)

(No, I didn't write it...)

还有一点建议 - 不要更改任何原始软件包.其他东西取决于它们,如果你彻底删除它们中的任何一个,奇怪的东西可能会以意想不到的方式破坏.相反,使用 PRV,和/或在您的 ~/Library/Application Support/Sublime Text 3/Packages 文件夹中创建同名文件夹,并通过将修改后的版本放在那里来覆盖单个文件.

One more bit of advice - don't change any of the pristine packages. Other stuff depends on them, and weird things can break in unexpected ways if you outright delete any of them. Instead, use PRV, and/or create identically-named folders in your ~/Library/Application Support/Sublime Text 3/Packages folder, and override individual files by placing modified versions there instead.

祝你好运!

这篇关于Sublime Text 3 系统包位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-13 10:55