Skip to content

Instantly share code, notes, and snippets.

@AnsonH
Last active July 6, 2024 10:58
Show Gist options
  • Save AnsonH/dd027ae954fb82124fd90849d36da8b1 to your computer and use it in GitHub Desktop.
Save AnsonH/dd027ae954fb82124fd90849d36da8b1 to your computer and use it in GitHub Desktop.
[
// Tabs - Reorder with "Shift + Left/Right"
{
"key": "shift+left",
"command": "-cursorColumnSelectLeft",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "shift+left",
"command": "-cursorLeftSelect",
"when": "textInputFocus && vim.mode != 'Visual'"
},
{
"key": "shift+left",
"command": "workbench.action.moveEditorLeftInGroup",
"when": "vim.mode == 'Normal'"
},
{
"key": "shift+right",
"command": "-cursorColumnSelectRight",
"when": "editorColumnSelection && textInputFocus"
},
{
"key": "shift+right",
"command": "-cursorRightSelect",
"when": "textInputFocus && vim.mode != 'Visual'"
},
{
"key": "shift+right",
"command": "workbench.action.moveEditorRightInGroup",
"when": "vim.mode == 'Normal'"
},
// Multi-cursor - Replace "Ctrl+d" with "Alt+d" for Windows/Linux
{
"key": "ctrl+d",
"command": "-editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
},
{
"key": "alt+d",
"command": "editor.action.addSelectionToNextFindMatch",
"when": "editorFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment