Sublime Text Editor – Package Control

Today I found an interesting package to install on Sublime Text, may be I did not pay much attention on the sublime text tutorial online, but this seems to be one of the “must install” package on Sublime Text; which is “Package Control

I am still using Sublime Text 2, Sublime Text 3 still in Beta version. To install Package Control;

1. Go to Sublime Text’s console. View -> Show Console

sublime-text-show-console

2. Paste the line into the console as shown on “Package Control” website. in my case it pasting this;

import urllib2,os,hashlib; h = 'eb2297e1a458f27d836c04bb0cbaf282' + 'd0e7a3098092775ccb37ca9d6b2e4b7d'; 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()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation') 

It will looks like below and hit enter.

sublime-text-package-control

After the installation has been done, try to install a package name BeautifyRuby.

1. Launch Package Control: Install Package by “AppleCommand + Shift + P” or in Windows “Ctrl + Shift + p”

sublime-text-package-control-install

2. Search for BeautifyRuby and hit enter to install

sublime-text-package-control-beautify-ruby

3. You may notice the status bar showing the installation status on the package.

sublime-text-package-control-installation

I am going to explore packages offer by Package Control in Sublime Text 😉