Skip to content

Instantly share code, notes, and snippets.

@pcnoic
Last active October 29, 2023 21:08
Show Gist options
  • Save pcnoic/e18861eb01b19807e6f663858c4d52a7 to your computer and use it in GitHub Desktop.
Save pcnoic/e18861eb01b19807e6f663858c4d52a7 to your computer and use it in GitHub Desktop.
VSCode Keybindings for using a Windows/Linux layout on macOS (provided that you have karabiner pc-style keymap enabled)
// User keybindings.json and use this https://marketplace.visualstudio.com/items?itemName=smcpeak.default-keys-windows
[
{
"key": "ctrl+shift+p",
"command": "workbench.action.quickOpenNavigatePreviousInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "shift+cmd+p",
"command": "-workbench.action.quickOpenNavigatePreviousInFilePicker",
"when": "inFilesPicker && inQuickOpen"
},
{
"key": "shift+alt+right",
"command": "cursorWordEndRightSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+shift+right",
"command": "-cursorWordEndRightSelect",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "shift+alt+left",
"command": "cursorWordEndLeftSelect"
},
{
"key": "alt+left",
"command": "cursorWordEndLeft"
},
{
"key": "alt+right",
"command": "cursorWordEndRight",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "ctrl+right",
"command": "-cursorWordEndRight",
"when": "textInputFocus && !accessibilityModeEnabled"
},
{
"key": "cmd+c",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "\u0003"
},
"when": "terminalFocus"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment