[Sublime Text] How to Set Up Package Control

Tadashi Shigeoka ·  Tue, January 29, 2013

Here’s how to set up Package Control in Sublime Text 2.

  1. Press Ctrl + ` to display the console at the bottom, then copy and paste the following code into the console and press Enter to start installation
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation'
  1. Restart Sublime Text to enable it

  2. Press Command + Shift + P and if “Package Control” appears in the Command Palette, installation is complete

Now you can install various packages using Package Control: Install Packages.

That’s all from the Gemba.