Posts List
  1. Introduction
  2. Install Package Control
  3. Install Plugins
  4. Some Useful Plugins

Install Package Control for Sublime Text 3


Introduction

Package Control is a great tool to automatically install plugins for sublime text 3. I would love to share the way to install package control and some useful plugins.

Install Package Control

Open Sublime Text Three.
Find View in the top menu and choose “show console”.

example pic

You would see the console at the bottom.

Then copy the following code into the console.

Sublime Text Three:

1
2
3
import urllib.request,os; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path();
urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) );
open(os.path.join(ipp, pf), 'wb').write(urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ','%20')).read())

Sublime Text Two:

1
2
3
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')

Install Plugins

To install plugins, firstly open the package control from the “Preferences” menu.
example pic
Then type in “install”.
Wait a moment and you would find:
example pic
Type the code of your plugin and it would be automatically installed.

Some Useful Plugins

Here are some of the plugins I installed just to make sublime text more powerful.

  • Emmet - the must have for web developers as it automatically fills in most of the html structure for you.

  • LaTexTools - a tool for sublimetext to preview your LaTex in pdf with just a click.

  • markdown preview - a tool for you to preview your markdown code, just press crtl+shift+p and enter markdown you can preview your markdown code in your own browser.

You can find all the tools by the package install function you just installed.

That’s all.