Package Control is the Sublime Text package manager. It includes a list of over 2,500 packages available for install, and users can add any GitHub or BitBucket repository themselves. Once installed, packages are kept up-to-date automatically.
The example code creates the Installed Packages folder for you (if necessary), and then downloads the Package Control.sublime-package into it. The download will be done over HTTP instead of HTTPS due to Python standard library limitations, however the file will be validated using SHA-256.
If you are using Sublime Text 3 then the simplest way to install Package Control is to select Install Package Control
in the Tools
menu or in the Command Palette
and Sublime Text will install it automatically.
For Sublime Text 2, older versions of Sublime Text 3, or if you have a proxy server related problem, then Package Control can be installed using a Python script that must be pasted into the Sublime Text console.
Show Console
in the View
menu, or by using the Ctrl+`
shortcut keys, or by selecting Console: Show
in the Command Palette
.Enter
key to run the script.You can new go to the Package Control Web Site and choose the packages that you want to install.
Once you have package control installed, it is super easy to install any plugin, theme, color scheme, syntax that you want!
You can search for packages on this website: packagecontrol.io, or simply search for some key words when you decide you need to install a package (see below).
From ST, bring up the command palette, and type install package
until package control: install package
is hightlighted, and press enter.
Wait a bit, and a list with all the package available will come up. Type the name of the one you want to install, and it enter
. Done!
Note: It is safe to restart sublime text after you've install a package. But it become less and less useful (sublime text gets better, so you almost don't need to now). So, just restart it if something is weird, not just because I said it.
By unlisted package, I mean a package that is not available through Package Control (yet). So, you can't find it in packagecontrol.io.
BUT, you can still install it using Package Control, so you'll get all the advantages. For example, they'll be automatically updated, just like a "regular" installation.
And it's really easy.
Package Control: Add repository
in the command palette (ctrl+shift+p)And now, it's just like if this package was on the default channel (a channel is a simple list of packages. The default one is the one you get... by default 😃).
Package Control: Install Package
in the command palette (ctrl+shift+p)That's it! Pretty cool, huh? So, if you're a package developer don't hesitate to let them know they can do it this way (always better than the git clone
and git pull
😉).
Note: Feel free to copy/paste this text in your readme, or adapt your own version!