Skip to content

Instantly share code, notes, and snippets.

@Beefster09
Last active May 2, 2022 21:06
Show Gist options
  • Save Beefster09/b24f26d195007a5a2e60f643ae639b59 to your computer and use it in GitHub Desktop.
Save Beefster09/b24f26d195007a5a2e60f643ae639b59 to your computer and use it in GitHub Desktop.
My Sublime Settings
[
{ "keys": ["tab"], "command": "indent", "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "^$", "match_all": true },
{ "key": "following_text", "operator": "not_regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["shift+tab"], "command": "unindent", "context":
[
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
// { "key": "preceding_text", "operator": "not_regex_match", "operand": "^$", "match_all": true },
// { "key": "following_text", "operator": "not_regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["ctrl+up"], "command": "swap_line_up" },
{ "keys": ["ctrl+down"], "command": "swap_line_down" },
{ "keys": ["alt+up"], "command": "swap_line_up" },
{ "keys": ["alt+down"], "command": "swap_line_down" },
{ "keys": ["ctrl+shift+up"], "command": "scroll_lines", "args": {"amount": 1.0 } },
{ "keys": ["ctrl+shift+down"], "command": "scroll_lines", "args": {"amount": -1.0 } },
{ "keys": ["ctrl+shift+'"], "command": "change_quotes" },
{ "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": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_contains", "operand": "[`a-zA-Z0-9_]$", "match_all": true },
{ "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "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": ["`"], "command": "move", "args": {"by": "characters", "forward": true}, "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": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "`$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^`", "match_all": true }
]
},
{ "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" },
{ "keys": ["ctrl+k", "ctrl+s"], "command": "convert_to_snake"},
{ "keys": ["ctrl+k", "ctrl+shift+s"], "command": "convert_to_screaming_snake"},
{ "keys": ["ctrl+k", "ctrl+c"], "command": "convert_to_camel"},
{ "keys": ["ctrl+k", "ctrl+p"], "command": "convert_to_pascal"},
{ "keys": ["ctrl+k", "ctrl+d"], "command": "convert_to_dot"},
{ "keys": ["ctrl+k", "ctrl+h"], "command": "convert_to_dash"},
{ "keys": ["ctrl+k", "ctrl+w"], "command": "convert_to_separate_words"},
{ "keys": ["ctrl+k", "ctrl+/"], "command": "convert_to_slash"},
{ "keys": ["ctrl+k", "ctrl+b"], "command": "convert_to_back_slash"},
]
{
"color_scheme": "Packages/Color Scheme - Default/Mariana.sublime-color-scheme",
"default_line_ending": "unix",
"ensure_newline_at_eof_on_save": true,
"fallback_encoding": "UTF-8",
"folder_exclude_patterns":
[
".svn",
".git",
".hg",
"CVS",
"__pycache__"
],
"font_size": 11,
"ignored_packages":
[
"Vintage",
],
"rulers":
[
72,
80,
100
],
"show_full_path": false,
"translate_tabs_to_spaces": true,
"trim_trailing_white_space_on_save": true,
"draw_white_space": ["selection", "leading_mixed", "isolated"],
"indent_guide_options": ["draw_normal", "draw_active"],
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment