Skip to content

Instantly share code, notes, and snippets.

@srok
Created September 7, 2020 15:10
Show Gist options
  • Save srok/1b5c2ba828bb928dfe40bdea6c689e08 to your computer and use it in GitHub Desktop.
Save srok/1b5c2ba828bb928dfe40bdea6c689e08 to your computer and use it in GitHub Desktop.
Sublime settings
[
{ "keys": ["ctrl+shift+l"], "command": "code_formatter" },
{ "keys": ["ctrl+shift+d"], "command": "find_under_expand" },
{ "keys": ["ctrl+d"], "command": "duplicate_line" },
{ "keys": ["enter"], "command": "commit_completion", "context":
[
{ "key": "auto_complete_visible" },
{ "key": "setting.auto_complete_commit_on_tab" }
]
},
{
"keys": ["ctrl+shift+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>"}
},
{"keys": ["alt+shift+f"], "command": "reindent", "args": {"single_line": false}},
{ "keys": ["ctrl+1"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+1"], "command": "toggle_comment", "args": { "block": true } },
// Auto-pair brackets
{ "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": "selector", "operator": "equal", "operand": "source.php" }
]
},
{ "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 },
{ "key": "selector", "operator": "equal", "operand": "source.php" }
]
},
{ "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 },
{ "key": "selector", "operator": "equal", "operand": "source.php" }
]
},
//{ "keys": ["="], "command": "insert", "args": {"characters": " = "}}
]
{
"bootstrapped": true,
"in_process_packages":
[
],
"installed_packages":
[
"A File Icon",
"All Autocomplete",
"Bootstrap 4 Snippets",
"BracketHighlighter",
"DocBlockr",
"Git",
"GitGutter",
"JSON Reindent",
"Package Control",
"PHP Companion",
"PHP-Twig",
"PhpDoc",
"Sass",
"SideBarEnhancements",
"SublimeLinter",
"SublimeLinter-php",
"Sync Settings",
"TypeScript Syntax"
]
}
{
"bold_folder_labels": true,
"color_scheme": "Packages/Color Scheme - Default/Monokai.sublime-color-scheme",
"ensure_newline_at_eof_on_save": true,
"font_face": "Fira Code Retina",
"font_size": 10,
"highlight_line": 12,
"ignored_packages":
[
"Vintage"
],
"line_padding_bottom": 2,
"line_padding_top": 2,
"rulers":
[
80,
120
],
"tab_size": 4,
"theme": "Default.sublime-theme",
"translate_tabs_to_spaces": true,
"trim_trailing_white_space": true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment