Skip to content

Instantly share code, notes, and snippets.

@dhayab
Last active October 21, 2015 20:41
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 dhayab/cfe84e34a48edc02f7f6 to your computer and use it in GitHub Desktop.
Save dhayab/cfe84e34a48edc02f7f6 to your computer and use it in GitHub Desktop.
My Sublime Text 3 preferences and key bindings.
[
// Change key binding to open console on non-qwerty keyboards
{ "keys": ["ctrl+&"], "command": "show_panel", "args": { "panel": "console", "toggle": true } },
// Swap lines
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
// Code folding
{ "keys": ["ctrl+shift+keypad_plus"], "command": "unfold_all" },
{ "keys": ["ctrl+shift+keypad_minus"], "command": "fold_all" },
// Fix Beginning + End of line
{ "keys": ["super+left"], "command": "move_to", "args": {"to": "hardbol", "extend": false} },
{ "keys": ["super+right"], "command": "move_to", "args": {"to": "hardeol", "extend": false} },
{ "keys": ["super+shift+left"], "command": "move_to", "args": {"to": "hardbol", "extend": true} },
{ "keys": ["super+shift+right"], "command": "move_to", "args": {"to": "hardeol", "extend": true} }
]
{
"auto_complete_commit_on_tab": true,
"bold_folder_labels": true,
"caret_style": "solid",
"close_windows_when_empty": true,
"color_scheme": "Packages/User/Tomorrow-Night (SL).tmTheme",
"create_window_at_startup": false,
"ensure_newline_at_eof_on_save": true,
"file_exclude_patterns":
[
"*.min.js",
".DS_Store",
"._.*",
"*.png",
"*.jpg",
"*.ico",
"*.jpeg",
"*.gif",
".tags*",
"*.pyc",
"*.pyo",
"*.exe",
"*.dll",
"*.obj",
"*.o",
"*.a",
"*.lib",
"*.so",
"*.dylib",
"*.ncb",
"*.sdf",
"*.suo",
"*.pdb",
"*.idb",
"*.class",
"*.psd",
"*.db",
"*.pdf",
".tags",
".gemtags"
],
"folder_exclude_patterns":
[
".git",
".sass-cache",
"tmp",
"bower_components",
"node_modules"
],
"font_face": "Inconsolata",
"font_size": 14.0,
"highlight_line": true,
"highlight_modified_tabs": true,
"ignored_packages":
[
"Vintage"
],
"indent_guide_options":
[
"draw_normal",
"draw_active"
],
"scroll_past_end": true,
"tab_size": 4,
"theme": "Spacegray Eighties.sublime-theme",
"translate_tabs_to_spaces": true,
"word_wrap": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment