Skip to content

Instantly share code, notes, and snippets.

@dipth
Created November 21, 2011 14:23
Show Gist options
  • Save dipth/1382752 to your computer and use it in GitHub Desktop.
Save dipth/1382752 to your computer and use it in GitHub Desktop.
Sublime Text 2 Configuration
{
"color_scheme": "Packages/Color Scheme - Default/Twilight.tmTheme",
"font_size": 12,
"font_face": "Monaco",
"trim_trailing_white_space_on_save": true,
"scroll_past_end": true,
"ensure_newline_at_eof_on_save": true,
"auto_indent": true,
"tab_size": 2,
"translate_tabs_to_spaces": true
}
// Place user-specific overrides in this file, to ensure they're preserved
// when upgrading
{
"theme": "Soda Dark.sublime-theme"
}
[{ "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#{$0}"}, "context": [
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(\"$)", "match_all": true }]
},{ "keys": ["#"], "command": "insert_snippet", "args": {"contents": "#{${0:$SELECTION}}"}, "context":[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }]
},{ "keys": ["ctrl+<"], "command": "insert_snippet", "args": {"contents": "<%=$0 %>"} }]
@dipth
Copy link
Author

dipth commented Nov 21, 2011

@dipth
Copy link
Author

dipth commented Nov 21, 2011

And follow these instructions for setting up CLI: http://www.sublimetext.com/docs/2/osx_command_line.html

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment