AJ Kovalainen
  • About
  • Blog
May 19, 2012

Sublime Text 2 tips

Sublime Text 2 is an awesome editor. The combination of a big feature set, cross-platform compatibility and extensibility really sells it to me. I’ve collected here some of my stuff related to Sublime Text 2:

1. Setting it up

I change some of the default stuff after installation. Paste this into Preferences → Settings - User

"caret_style": "phase",
"color_scheme": "Packages/Color Scheme - Default/Mac Classic.tmTheme",
"font_size": 12.0,
"highlight_active_indent_guide": true,
"highlight_line": true,
"tab_size": 4,
"translate_tabs_to_spaces": true,
"draw_white_space": "all"

Update, Jun 24 2012: Added “draw_white_space”

2. Install Package Control

Package Control easily and quickly enables you to install plugins (or packages) into Sublime Text 2. Must have even if you just wanna try the plugins :)

3. Install plugins

Use Package Control to install these:

  • Prefixr: for CSS3 vendor-prefix auto-generation goodness
  • SublimeLinter: Inline lint highlighting for the Sublime Text 2 editor
  • CodeIntel: Full-featured code intelligence and smart autocomplete engine
  • Git: context-menu for some simple Git-actions
  • Tag: HTML/XML/etc. indentation and structure fixing

Update, Jun 24 2012: Added Tag

Extras

Create subl command-line shortcut:

ln -s "/Applications/Sublime Text 2.app/Contents/SharedSupport/bin/subl" ~/bin/subl

Add $HOME/bin to /etc/paths:

sudo echo \`echo \$HOME/bin\` >> /etc/paths

Set Sublime Text 2 as default editor for git:

git config --global core.editor "subl -w"
Written by AJ Kovalainen
Announcing Beatstream OSX Tips and Tricks
  • X x.com/darep
  • GitHub github.com/darep
  • Email ajk@ajk.fi

© AJ Kovalainen

Made with the know-how and the elbow grease