Development Journal

Student at Flatiron School NYC

Packages for Sublime

Package Control

Packages in Sublime come in a variety of value and quality. Lets go over installing a side bar option enhancement pckage.


Package Control is a package manager that helps you extend and modify the Sublime editor. Lets get it installed, add a new package, and remove a package to get familiar with Package Control for Sublime.

  1. Install Package Control – Get Package Control Here

  2. Once here just copy and paste the correct Python code depending on which version of Sublime you have. Below is the code for Sublime Text 2.

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( '' +pf.replace( ' ','%20' )).read()); print( 'Please restart Sublime Text to finish installation')

Open Sublime and pop open the Sublime console by pressing crl + `.

Paste the code snippet into the console, press return, and restart your editor.

Channels and Package Installation.

Sublime Packages generally are found in the “Default Channel”. This is channel is the open source forum where developers add their packages and they can be easily searched and downloaded.

The option to create custom channels exists but we won’t touch on that here.

Package Control is evoked through the command palate.

  1. Open the Command Palate: cmd + shift + p will pop open the command palate.

  2. Type Install into the text area and you will see that package install option will be available.

  3. Select the option Package Control: Install Package

  4. You will now be able to search by Package name. Even if you don’t know if a package exists that you are looking for. Just type in a few terms and see what comes up.

  5. We are going to install a package called SideBarEnhnacements. This extension will give us some extra options when we are working on applications that have a robust directory structure.

A concrete example would be that we wouldn’t need to switch to the terminal to type out mkdir when we need a new folder.

  1. Restart your editor after you hit return on SideBarEnhnacements.

  2. Open any application you are working on and ctrl click on the side bar. You will see the enhanced options that the SideBarEnhnacementspackage we just installed now gave us.

Remove a package

  1. If for any reason you want to remove a package. Just open the Command Palate again with cmd + shift + p but now type remove and then select Package Control: Remove Package This will allow you to select for your package library what you would like to remove.

Editing Packages

Many packages such as Gist require some sort of configuration. If so, you can browse your packages by selecting browse packages from the Sublime Text preferences dropdown.

There are ton of usefull packages out there and a solid community of people that are interested in pushing the Sublime development tool forward.

Check out the links below for a few that I am currently using and also a search on the Package Control site for all Ruby related packages.

My Packages

Ruby Packages Search Ruby Package Search.

SideBarEnhancements The one we installed.

HTML5 HTML5 Snippit library.

Gist Create github gists from highlighted texts.

GitGutter See the git status of each line of code.