Skip to content

Instantly share code, notes, and snippets.

@sharapeco
Last active October 6, 2021 02:52
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sharapeco/7e1b2df899445110f79d38499aaa4ceb to your computer and use it in GitHub Desktop.
Save sharapeco/7e1b2df899445110f79d38499aaa4ceb to your computer and use it in GitHub Desktop.
Visual Studio Code Key Bindings
// 既定値を上書きするには、このファイル内にキー バインドを挿入します
[
{
"key": "ctrl+space",
"command": "editor.action.setSelectionAnchor",
"when": "editorTextFocus"
},
{
"key": "cmd+w",
"command": "emacs.copy-region",
"when": "editorTextFocus"
},
{
"key": "ctrl+w",
"command": "emacs.kill-region",
"when": "editorTextFocus"
},
{
"key": "ctrl+y",
"command": "emacs.paste",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+c ctrl+y",
"command": "multiclip.list",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+z",
"command": "zaptochar.deleteForward"
},
{
"key": "shift+cmd+z",
"command": "zaptochar.deleteBackward"
},
{
"key": "ctrl+shift+z",
"command": "zaptochar.backward"
},
{
"key": "ctrl+z",
"command": "zaptochar.forward"
},
{
"key": "ctrl+[IntlRo]",
"command": "default:redo"
},
{
"key": "ctrl+s",
"command": "extension.incrementalSearch.forward",
"when": "editorTextFocus"
},
{
"key": "ctrl+i",
"command": "-extension.incrementalSearch.forward",
"when": "editorTextFocus"
},
{
"key": "ctrl+s",
"command": "extension.incrementalSearch.forward",
"when": "incrementalSearch"
},
{
"key": "ctrl+i",
"command": "-extension.incrementalSearch.forward",
"when": "incrementalSearch"
},
{
"key": "ctrl+cmd+s",
"command": "extension.incrementalSearch.expand",
"when": "incrementalSearch"
},
{
"key": "ctrl+alt+i",
"command": "-extension.incrementalSearch.expand",
"when": "incrementalSearch"
},
{
"key": "ctrl+r",
"command": "extension.incrementalSearch.backward",
"when": "editorTextFocus"
},
{
"key": "ctrl+u",
"command": "-extension.incrementalSearch.backward",
"when": "editorTextFocus"
},
{
"key": "ctrl+r",
"command": "extension.incrementalSearch.backward",
"when": "incrementalSearch"
},
{
"key": "ctrl+u",
"command": "-extension.incrementalSearch.backward",
"when": "incrementalSearch"
},
{
"key": "ctrl+cmd+r",
"command": "extension.incrementalSearch.backwardExpand",
"when": "incrementalSearch"
},
{
"key": "ctrl+alt+u",
"command": "-extension.incrementalSearch.backwardExpand",
"when": "incrementalSearch"
},
{
"key": "ctrl+i",
"command": "tab",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
},
{
"key": "ctrl+k ctrl+l",
"command": "editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+k",
"command": "-editor.action.deleteLines",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "shift+cmd+,",
"command": "cursorTop",
"when": "textInputFocus"
},
{
"key": "shift+cmd+.",
"command": "cursorBottom",
"when": "textInputFocus"
},
{
"key": "cmd+0",
"command": "workbench.action.zoomReset"
},
{
"key": "cmd+numpad0",
"command": "-workbench.action.zoomReset"
},
{
"key": "cmd+x",
"command": "workbench.action.showCommands"
},
{
"key": "cmd+l",
"command": "editor.action.transformToLowercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+x ctrl+l",
"command": "-editor.action.transformToLowercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+u",
"command": "editor.action.transformToUppercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+x ctrl+u",
"command": "-editor.action.transformToUppercase",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+e",
"command": "emacs.expand-selection"
},
{
"key": "ctrl+c ctrl+n",
"command": "explorer.newFile"
},
{
"key": "cmd+b",
"command": "emacs.cursorWordLeft",
"when": "editorTextFocus"
},
{
"key": "alt+b",
"command": "-emacs.cursorWordLeft",
"when": "editorTextFocus"
},
{
"key": "cmd+f",
"command": "emacs.cursorWordRight",
"when": "editorTextFocus"
},
{
"key": "alt+f",
"command": "-emacs.cursorWordRight",
"when": "editorTextFocus"
},
{
"key": "shift+cmd+.",
"command": "emacs.cursorBottom",
"when": "editorTextFocus"
},
{
"key": "shift+alt+.",
"command": "-emacs.cursorBottom",
"when": "editorTextFocus"
},
{
"key": "cmd+v",
"command": "emacs.cursorPageUp",
"when": "editorTextFocus && !suggestWidgetVisible"
},
{
"key": "alt+v",
"command": "-emacs.cursorPageUp",
"when": "editorTextFocus && !suggestWidgetVisible"
},
{
"key": "shift+cmd+,",
"command": "emacs.cursorTop",
"when": "editorTextFocus"
},
{
"key": "shift+alt+,",
"command": "-emacs.cursorTop",
"when": "editorTextFocus"
},
{
"key": "ctrl+x b",
"command": "workbench.action.closeSidebar"
},
{
"key": "ctrl+g",
"command": "-workbench.action.gotoLine"
},
{
"key": "ctrl+[Quote]",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+g",
"command": "workbench.action.gotoLine"
},
{
"key": "alt+g g",
"command": "-workbench.action.gotoLine"
},
{
"key": "ctrl+k ctrl+e",
"command": "deleteAllRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+delete",
"command": "-deleteAllRight",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "ctrl+k ctrl+a",
"command": "deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+backspace",
"command": "-deleteAllLeft",
"when": "textInputFocus && !editorReadonly"
},
{
"key": "cmd+]",
"command": "editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "cmd+]",
"command": "-editor.action.indentLines",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "ctrl+c ctrl+f",
"command": "editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
},
{
"key": "shift+alt+f",
"command": "-editor.action.formatDocument",
"when": "editorHasDocumentFormattingProvider && editorTextFocus && !editorReadonly && !inCompositeEditor"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment