Created
September 2, 2017 09:52
-
-
Save pujiaxun/65788188b69f48a627f449996e355b69 to your computer and use it in GitHub Desktop.
A patch of VS Code keymap, for macOS Chinese Input Method.
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
[ | |
{ | |
"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" | |
} | |
] |
@wwwpalmercom code设置里搜索「Keyboard: Dispatch」,选keyCode 试试?
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
请问下,code 自带的快捷键模式切换怎么设置的?我现在遇到的就是中文下,快捷键失效