Sublime Text 3 System Package Location?

馋奶兔 提交于 2019-12-17 20:32:17

问题


Where are system packages located in ST3? I'm well aware of these two:

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

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...

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

Thanks!


回答1:


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...)

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.

Good luck!




回答2:


For Sublime Text 3 in "C:\Program Files\Sublime Text 3\Packages" you get all .sublime-packages.
copy the required package as per related language if I want edit JavaC.sublime-build file so its from java language. so I copy java.sublime-package to another folder. change its extension from .sublime-package to zip and extract it you get JavaC.sublime-build file in my Case. after modifications zip that extracted folder and change its extension from .zip to .sublime-package and after that copy and replace that file to "C:\Program Files\Sublime Text 3\Packages" direcory!



来源:https://stackoverflow.com/questions/20345206/sublime-text-3-system-package-location

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!