vscode
disable the Apple press and hold
$ defaults write com.microsoft.VSCode ApplePressAndHoldEnabled -bool false
command+x for showCommands
command+shift+p "open keyboard shortcuts json"
[
{ "key": "alt+x", "command": "workbench.action.showCommands" },
{
"key": "tab",
"command": "magit.toggle-fold",
"when": "editorTextFocus && editorLangId == 'magit'"
},
{
"key": "n",
"command": "cursorDown",
"when": "editorTextFocus && editorLangId == 'magit'"
},
{
"key": "p",
"command": "cursorUp",
"when": "editorTextFocus && editorLangId == 'magit'"
},
]
settings
command+x "open user settings json"
"vim.useSystemClipboard": true,
"workbench.editor.showTabs": "none",
"vim.leader": "|",
"vim.normalModeKeyBindings": [
{
"before": [
"ctrl+a",
"l"
],
"commands": [
"workbench.action.navigateRight"
]
},
{
"before": [
"ctrl+a",
"h"
],
"commands": [
"workbench.action.navigateLeft"
]
},
{
"before": [
"ctrl+a",
"j"
],
"commands": [
"workbench.action.navigateDown"
]
},
{
"before": [
"ctrl+a",
"k"
],
"commands": [
"workbench.action.navigateUp"
]
},
{
"before": [
"ctrl+a",
"shift+h"
],
"commands": [
"workbench.action.navigateBack"
]
},
{
"before": [
"ctrl+a",
"shift+l"
],
"commands": [
"workbench.action.navigateForward"
]
},
{
"before": [
"ctrl+a",
"x"
],
"commands": [
"workbench.action.closeActiveEditor"
]
},
{
"before": [
"ctrl+a",
"|"
],
"commands": [
"workbench.action.splitEditor"
]
},
{
"before": [
"ctrl+a",
"-"
],
"commands": [
"workbench.action.splitEditorDown"
]
},
{
"before": [
"ctrl+a",
"o"
],
"commands": [
"workbench.action.editorLayoutSingle"
]
},
],
all keybindings
command + x then "open Default Keyboard Shortcuts"