Last active
July 23, 2023 18:58
-
-
Save azriel91/ca3db28c684edaae974352e6ffcbb0b7 to your computer and use it in GitHub Desktop.
Sublime Text key bindings
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
// changing case | |
{ "keys": ["ctrl+k", "ctrl+t"], "command": "title_case" }, | |
// tabbing | |
{ "keys": ["ctrl+tab"], "command": "next_view" }, | |
{ "keys": ["ctrl+shift+tab"], "command": "prev_view" }, | |
// find_under_expand | |
{ "keys": ["alt+d"], "command": "find_under_expand" }, | |
{ "keys": ["alt+shift+d"], "command": "find_all_under" }, | |
{ "keys": ["ctrl+alt+d"], "command": "find_under_expand_skip" }, | |
// duplicating/deleting lines | |
{ "keys": ["ctrl+alt+up"], "command": "duplicate_lines", "args": { "forward": false } }, | |
{ "keys": ["ctrl+alt+down"], "command": "duplicate_lines", "args": { "forward": true } }, | |
{ "keys": ["ctrl+d"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} }, | |
// moving lines | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
// multi cursor | |
{ "keys": ["ctrl+shift+up"], "command": "select_lines", "args": {"forward": false} }, | |
{ "keys": ["ctrl+shift+down"], "command": "select_lines", "args": {"forward": true} }, | |
// expand selection | |
{ "keys": ["alt+shift+up"], "command": "expand_selection", "args": {"to": "scope"} }, | |
{ "keys": ["alt+shift+down"], "command": "soft_undo" }, | |
// toggle visibility | |
{ "keys": ["ctrl+k", "ctrl+m"], "command": "toggle_minimap" }, | |
{ "keys": ["ctrl+shift+x"], "command": "max_editor" }, | |
// navigation | |
{ "keys": ["ctrl+alt+left"], "command": "jump_back" }, | |
{ "keys": ["ctrl+alt+right"], "command": "jump_forward" }, | |
// miscellaneous | |
{ "keys": ["alt+shift+t"], "command": "unexpand_tabs" }, | |
{ "keys": ["alt+z"], "command": "soft_undo" }, | |
{ "keys": ["ctrl+k", "ctrl+v"], "command": "reveal_in_side_bar" }, | |
// Run Code Action | |
{ | |
"command": "lsp_code_actions", | |
"keys": [ | |
"ctrl+." | |
], | |
"context": [ | |
{ | |
"key": "lsp.session_with_capability", | |
"operator": "equal", | |
"operand": "codeActionProvider" | |
} | |
] | |
}, | |
// Toggle inlay hints | |
// Accepts optional "enable" argument to specify the expected state instead of toggling. | |
{ | |
"command": "lsp_toggle_inlay_hints", | |
"keys": ["ctrl+k", "ctrl+h"], | |
"context": [{"key": "lsp.session_with_capability", "operand": "inlayHintProvider"}] | |
}, | |
// Redefine these to undo Markdown Editing's override. | |
{ "keys": ["ctrl+k", "ctrl+1"], "command": "fold_by_level", "args": {"level": 1} }, | |
{ "keys": ["ctrl+k", "ctrl+2"], "command": "fold_by_level", "args": {"level": 2} }, | |
{ "keys": ["ctrl+k", "ctrl+3"], "command": "fold_by_level", "args": {"level": 3} }, | |
{ "keys": ["ctrl+k", "ctrl+4"], "command": "fold_by_level", "args": {"level": 4} }, | |
{ "keys": ["ctrl+k", "ctrl+5"], "command": "fold_by_level", "args": {"level": 5} }, | |
{ "keys": ["ctrl+k", "ctrl+6"], "command": "fold_by_level", "args": {"level": 6} }, | |
{ "keys": ["ctrl+k", "ctrl+7"], "command": "fold_by_level", "args": {"level": 7} }, | |
{ "keys": ["ctrl+k", "ctrl+8"], "command": "fold_by_level", "args": {"level": 8} }, | |
{ "keys": ["ctrl+k", "ctrl+9"], "command": "fold_by_level", "args": {"level": 9} }, | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"always_show_minimap_viewport": true, | |
"auto_complete": false, | |
"color_scheme": "Packages/User/base16-tomorrow-night-bright.tmTheme", | |
"copy_with_empty_selection": false, | |
"default_line_ending": "unix", | |
"draw_minimap_border": false, | |
"draw_white_space": "all", | |
"extra_file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", | |
"*.obj", | |
"*.o", | |
"*.a", | |
"*.lib", | |
"*.so", | |
"*.dylib", | |
"*.ncb", | |
"*.sdf", | |
"*.suo", | |
"*.pdb", | |
"*.idb", | |
".DS_Store", | |
"*.class", | |
"*.psd", | |
"*.db", | |
"*.sublime-workspace" | |
], | |
"extra_folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
// "lib", // Java needs this | |
"build", | |
"Debug", | |
"Release", | |
"target" | |
], | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", | |
"*.obj", | |
"*.o", | |
"*.a", | |
"*.lib", | |
"*.so", | |
"*.dylib", | |
"*.ncb", | |
"*.sdf", | |
"*.suo", | |
"*.pdb", | |
"*.idb", | |
".DS_Store", | |
"*.class", | |
"*.psd", | |
"*.db", | |
"*.sublime-workspace", | |
], | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
// "lib", // Java needs this | |
"build", | |
"Debug", | |
"Release", | |
"target", | |
"book", | |
], | |
"font_size": 9, | |
"highlight_modified_tabs": true, | |
"ignored_packages": | |
[ | |
"Rust", | |
"Vintage", | |
], | |
"rulers": | |
[ | |
100, | |
], | |
"show_line_endings": true, | |
"theme": "Adaptive.sublime-theme", | |
"theme_agila_active_tab_entry_lightblue": true, | |
"theme_agila_compact_tab": true, | |
"theme_agila_modified_tab_marker_pink": true, | |
"theme_agila_sidebar_heading_lightblue": true, | |
"theme_agila_sidebar_mini": true, | |
"theme_agila_sidebar_selected_entry_lightblue": true, | |
"translate_tabs_to_spaces": true, | |
// OS X | |
"scroll_past_end": true, | |
"find_selected_text": true, | |
"hardware_acceleration": "opengl", | |
// Set to a value other than 0 to force wrapping at that column rather than | |
// the window width. See "wrap_width_style" for extra options. | |
"wrap_width": 100, | |
// MarkdownEditing | |
"mde.auto_fold_link.enabled": false, | |
"added_words": | |
[ | |
"implementers" | |
], | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment