Skip to content

Instantly share code, notes, and snippets.

@jpavon
Created June 22, 2012 09:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpavon/2971733 to your computer and use it in GitHub Desktop.
Save jpavon/2971733 to your computer and use it in GitHub Desktop.
Sublime Text 2 Config
[
{ "keys": ["ctrl+b"], "command": "toggle_side_bar" },
// Toggle Comments
{ "keys": ["alt+q"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+alt+q"], "command": "toggle_comment", "args": { "block": true } },
// HTML tag wrap
{ "keys": ["ctrl+q"], "command": "insert_snippet", "args": { "contents": "<${1:p}>${2:$SELECTION}</${1/([^ ]+).*/$1/}>" } },
// Console.log wrap
{ "keys": ["ctrl+l"], "command": "insert_snippet", "args": { "contents": "console.log(${1:$SELECTION})" } },
// Macro
{ "keys": ["ctrl+,"], "command": "run_macro_file", "args": {"file": "Packages/User/puntocomacss.sublime-macro"} },
{ "keys": ["ctrl+alt+/"], "command": "insert_snippet", "args": { "contents": "}" } },
{ "keys": ["ctrl+right"], "command": "move_to", "args": {"to": "eol", "extend": false} },
{ "keys": ["ctrl+v"], "command": "paste_and_indent" },
{ "keys": ["ctrl+shift+v"], "command": "paste" }
]
{
"auto_complete_commit_on_tab": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai Soda.tmTheme",
"draw_indent_guides": true,
"file_exclude_patterns":
[
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
".DS_Store",
"*.class",
"*.psd",
"*.db",
"*.pdf"
],
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
".bundle",
"log",
"tmp",
".sass-cache"
],
"font_face": "Meslo LG L DZ",
"font_size": 10,
"highlight_line": true,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active",
"draw_stack",
"normal_stippled",
"stack_stippled",
"active_stippled"
],
"tab_size": 4,
"theme": "Soda Dark.sublime-theme"
// "trim_trailing_white_space_on_save": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment