Skip to content

Instantly share code, notes, and snippets.

@h-otter
Last active January 4, 2025 19:29
Show Gist options
  • Save h-otter/27f5306d52a287cf27d8be2fedf4b701 to your computer and use it in GitHub Desktop.
Save h-otter/27f5306d52a287cf27d8be2fedf4b701 to your computer and use it in GitHub Desktop.
[
// Cursor right / left
{
"key": "right",
"command": "cursorRight",
"when": "editorTextFocus"
},
{
"key": "ctrl+f",
"command": "cursorRight",
"when": "editorTextFocus"
},
{
"key": "left",
"command": "cursorLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+b",
"command": "cursorLeft",
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+f",
"command": "cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "shift+right",
"command": "cursorRightSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+f",
"command": "cursorColumnSelectRight",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "shift+right",
"command": "cursorColumnSelectRight",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "ctrl+shift+b",
"command": "cursorColumnSelectLeft",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "shift+left",
"command": "cursorColumnSelectLeft",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "ctrl+shift+b",
"command": "cursorLeftSelect",
"when": "textInputFocus"
},
{
"key": "shift+left",
"command": "cursorLeftSelect",
"when": "textInputFocus"
},
// Cursor up / down
{
"key": "up",
"command": "cursorUp",
"when": "editorTextFocus && !suggestWidgetVisible"
},
{
"key": "ctrl+p",
"command": "cursorUp",
"when": "editorTextFocus && !suggestWidgetVisible"
},
{
"key": "down",
"command": "cursorDown",
"when": "editorTextFocus && !suggestWidgetVisible"
},
{
"key": "ctrl+n",
"command": "cursorDown",
"when": "editorTextFocus && !suggestWidgetVisible"
},
{
"key": "shift+up",
"command": "cursorUpSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+p",
"command": "cursorColumnSelectUp",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "shift+up",
"command": "cursorColumnSelectUp",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "ctrl+shift+n",
"command": "cursorColumnSelectDown",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "shift+down",
"command": "cursorColumnSelectDown",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "ctrl+shift+n",
"command": "cursorDownSelect",
"when": "textInputFocus"
},
{
"key": "shift+down",
"command": "cursorDownSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+p",
"command": "cursorUpSelect",
"when": "textInputFocus"
},
// Line-jump
{
"key": "home",
"command": "cursorHome",
"when": "textInputFocus"
},
{
"key": "ctrl+a",
"command": "cursorHome",
"when": "textInputFocus"
},
{
"key": "end",
"command": "cursorEnd",
"when": "textInputFocus"
},
{
"key": "ctrl+e",
"command": "cursorEnd",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+a",
"command": "cursorHomeSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+shift+e",
"command": "cursorEndSelect",
"when": "textInputFocus"
},
{
"key": "ctrl+k ctrl+a",
"command": "editor.action.selectAll"
},
// Word-selection
{
"key": "alt+b",
"command": "cursorWordLeft",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+left",
"command": "cursorWordLeft",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+shift+b",
"command": "cursorWordLeftSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+shift+left",
"command": "cursorWordLeftSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "alt+f",
"command": "cursorWordEndRight",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+right",
"command": "cursorWordEndRight",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "shift+alt+f",
"command": "cursorWordEndRightSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+shift+right",
"command": "cursorWordEndRightSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
// Move
{
"key": "alt+p",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+n",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
{
"key": "alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus && !editorReadonly"
},
// Delete
{
"key": "ctrl+d",
"command": "deleteRight",
"when": "editorTextFocus"
},
{
"key": "alt+d",
"command": "deleteWordRight",
"when": "editorTextFocus"
},
// Find
{
"key": "ctrl+/",
"command": "actions.find",
"when": "!findWidgetVisible"
},
{
"key": "ctrl+/",
"command": "editor.action.nextMatchFindAction",
"when": "findWidgetVisible"
},
{
"key": "ctrl+shift+/",
"command": "actions.find",
"when": "!findWidgetVisible"
},
{
"key": "ctrl+shift+/",
"command": "editor.action.previousMatchFindAction",
"when": "findWidgetVisible"
},
// Suggest
{
"key": "ctrl+r",
"command": "editor.action.triggerSuggest",
"when": "editorTextFocus"
},
// Comment-out
{
"key": "ctrl+;",
"command": "editor.action.commentLine",
"when": "editorTextFocus"
},
{
"key": "alt+;",
"command": "editor.action.blockComment",
"when": "editorTextFocus"
},
// Commands
{
"key": "ctrl+shift+c",
"command": "workbench.action.showCommands"
},
{
"key": "ctrl+shift+p",
"command": "-workbench.action.showCommands"
},
// Switch tab
{
"key": "ctrl+tab",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+pagedown",
"command": "workbench.action.nextEditor"
},
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "ctrl+pageup",
"command": "workbench.action.previousEditor"
},
]
@h-otter
Copy link
Author

h-otter commented Jan 4, 2025

令和最新版

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment