Skip to content

Instantly share code, notes, and snippets.

@alexkilgour
Last active December 27, 2015 01:49
Show Gist options
  • Save alexkilgour/7248001 to your computer and use it in GitHub Desktop.
Save alexkilgour/7248001 to your computer and use it in GitHub Desktop.
My SublimeText2 Setup

Theme & Color

I use Soda Theme (dark), with Monokai.

Packages

First add Package Control. For SublimeText 2, paste the following in Terminal:

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')

Then all of these can be installed using Package Control

  • SideBarEnhancements
  • GitGutter
  • Sass (syntax highlighting)
  • Prefixr
  • PrettyJSON
  • DocBlockr
  • Dustjs
  • HTML Mustache
  • Java Velocity
  • JQuery
  • JQuery Snippets

Custom Settings

In the File Menu, go to SublimeText → Preferences → Settings – User. It opens a JSON file where you can set options.

{
	"auto_complete": true,
	"auto_complete_commit_on_tab": false,
	"bold_folder_labels": true,
	"caret_style": "phase",
	"color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
	"detect_indentation": true,
	"draw_white_space": "all",
	"fade_fold_buttons": true,
	"folder_exclude_patterns":
	[
		".svn",
		".git",
		".hg",
		"CVS",
		"tmp",
		".bundle",
		".sass-cache"
	],
	"font_face": "Inconsolata",
	"font_size": 14,
	"highlight_line": true,
	"highlight_modified_tabs": true,
	"ignored_packages":
	[
		"Vintage",
		"SublimeLinter",
		"SublimeCodeIntel"
	],
	"line_padding_bottom": 0,
	"line_padding_top": 0,
	"tab_size": 4,
	"theme": "Soda Dark.sublime-theme",
	"word_wrap": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment