Instantly share code, notes, and snippets.

Embed
What would you like to do?
A patch of VS Code keymap, for macOS Chinese Input Method.
[
{
"key": "cmd+[Slash]",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+[Period]",
"command": "editor.action.inPlaceReplace.down",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "shift+cmd+[Comma]",
"command": "editor.action.inPlaceReplace.up",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+[BracketRight]",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+[BracketLeft]",
"command": "editor.action.outdentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+[Period]",
"command": "editor.action.quickFix",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"key": "alt+cmd+[BracketLeft]",
"command": "editor.fold",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+[BracketLeft]",
"command": "editor.foldRecursively",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+[BracketRight]",
"command": "editor.unfold",
"when": "editorTextFocus"
},
{
"key": "cmd+k cmd+[BracketRight]",
"command": "editor.unfoldRecursively",
"when": "editorTextFocus"
},
{
"key": "cmd+[Backslash]",
"command": "workbench.action.splitEditor"
},
{
"key": "ctrl+[Backquote]",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"key": "alt+[Period]",
"command": "gitlens.key..",
"when": "gitlens:key:."
},
{
"key": "alt+[Slash]",
"command": "gitlens.showCommitSearch",
"when": "gitlens:enabled"
},
{
"key": "alt+[Period]",
"command": "gitlens.diffWithNext",
"when": "editorTextFocus && gitlens:isTracked"
},
{
"key": "shift+alt+[Comma]",
"command": "gitlens.diffLineWithPrevious",
"when": "editorTextFocus && gitlens:isTracked"
},
{
"key": "alt+[Comma]",
"command": "gitlens.diffWithPrevious",
"when": "editorTextFocus && gitlens:isTracked"
},
{
"key": "cmd+[BackSlash]",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"key": "alt+cmd+[BracketLeft]",
"command": "editor.fold",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+[BracketRight]",
"command": "editor.unfold",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+[BracketLeft]",
"command": "editor.foldAll",
"when": "editorTextFocus"
},
{
"key": "shift+alt+cmd+[BracketRight]",
"command": "editor.unfoldAll",
"when": "editorTextFocus"
},
{
"key": "alt+cmd+[BackSlash]",
"command": "workbench.files.action.showActiveFileInExplorer"
},
{
"key": "cmd+[Comma]",
"command": "workbench.action.openGlobalSettings"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment