Skip to content

Essential packages

Zander Martineau edited this page Jun 2, 2014 · 10 revisions

Packages for every Sublime install

By Will Bond

A full-featured package manager that helps discovering, installing, updating and removing packages for Sublime Text. It features an automatic upgrader and supports GitHub, BitBucket and a full channel/repository system.

Package Control Installation

The simplest method of installation is through the Sublime Text console. The console is accessed via the ctrl+` shortcut or the View > Show Console menu. Once open, paste the appropriate Python code for your version of Sublime Text into the console from https://sublime.wbond.net/installation

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

Install a package with Package Control

Bring up the Command palette by pressing super+shift+p (super = cmd on Mac or ctrl on PC/Linux), start typing 'install' & hit enter when 'Package Control: Install Package' is highlighted. A quick-panel (like Goto Anything) will appear listing all available packages. Start typing the name of the package you wish to install, and then select it. Package Control will download the package file and install the package into the running instance of Sublime Text 2. You can look at the status area at the bottom of the editor for status updates.

Other Package Control functions

You can use Package Control to manage your packages, some of the most common action you will do is to install, disable, upgrade & remove packages. To do any of them, bring up the Command palette prompt & type whichever command you want. The rest should be self-explanatory.

Install/Browse more packages

Will Bond has also created a directory of community-created packages that you can search/browse. Check it out at https://sublime.wbond.net/search or https://sublime.wbond.net/browse

Batch install packages

To batch install other packages, a Package Control.sublime-settings file needs to be placed into the Packages/User/ folder. Inside of the settings file should be a JSON object with the key "installed_packages" that references a list of package names. When Package Control starts, if any of those packages are not present, the will be automatically downloaded and installed. Here is an example: http://pastebin.com/NLEavL1K. I have already created one that includes all the 'Essential Packages' [here](https://github.com/mrmartineau/SublimeTextSetup/blob/master/User/Package Control.sublime-settings) (I thought it better to only include these in case people did not need the front-emd specific templates).

I hope to get a build install script created to automate this process, if you are interested in helping out, please see this issue: https://github.com/mrmartineau/SublimeTextSetup/issues/3


By Colin Thomas-Arnold - Install through Package Control

Select text and drag it around, or setup a text tunnel to move code from one location to another.

Useful keybindings

(these need to be added to Users/Default (OSX).sublime-settings: super+ctrl+left Move text left super+ctrl+right Move text right

Add the following to your User/Default (OSX).sublime-keymap file

// Move Text
{ "keys": ["super+ctrl+left"], "command": "move_text_left" },
{ "keys": ["super+ctrl+right"], "command": "move_text_right" }

By Tito Bouzout - Install through Package Control for Sublime Text 2

Sublime Text 3

The version on Package Control does not work, clone or download the st3 branch into your packages directory.

Sublime's native sidebar sucks, install this to improve it.

View/Download my settings


By skuroda - Install through Package Control

Easily & quickly create new files & folders. Nettuts+ have created a quick screencast for the plugin, view it here.

Keybinding

super+alt+n Enter path for new file