adjust vscode settings

This commit is contained in:
Yu Squire[ Yu, Tsung-Ying ] 2025-07-28 11:43:10 +08:00
parent 3a06e074cf
commit 45d88af3c6
2 changed files with 91 additions and 37 deletions

View File

@ -77,7 +77,7 @@
}, },
{ {
"key": "escape", "key": "escape",
"command": "workbench.action.toggleSidebarVisibility", "command": "workbench.action.focusFirstEditorGroup",
"when": "explorerViewletFocus" "when": "explorerViewletFocus"
}, },
// Terminal management // Terminal management
@ -86,7 +86,7 @@
"command": "workbench.action.terminal.toggleTerminal" "command": "workbench.action.terminal.toggleTerminal"
}, },
{ {
"key": "ctrl+shift+n", "key": "ctrl+shift+t",
"command": "workbench.action.terminal.new", "command": "workbench.action.terminal.new",
"when": "terminalFocus" "when": "terminalFocus"
}, },
@ -96,12 +96,12 @@
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+shift+j", "key": "ctrl+tab",
"command": "workbench.action.terminal.focusNext", "command": "workbench.action.terminal.focusNext",
"when": "terminalFocus" "when": "terminalFocus"
}, },
{ {
"key": "ctrl+shift+k", "key": "ctrl+shift+tab",
"command": "workbench.action.terminal.focusPrevious", "command": "workbench.action.terminal.focusPrevious",
"when": "terminalFocus" "when": "terminalFocus"
}, },

View File

@ -27,7 +27,6 @@
"vim.hlsearch": true, "vim.hlsearch": true,
"vim.easymotion": true, "vim.easymotion": true,
"vim.useSystemClipboard": true, "vim.useSystemClipboard": true,
"vim.smartRelativeLine": true,
"vim.statusBarColorControl": false, "vim.statusBarColorControl": false,
"vim.ignorecase": true, "vim.ignorecase": true,
"vim.normalModeKeyBindings": [ "vim.normalModeKeyBindings": [
@ -58,6 +57,22 @@
":noh" ":noh"
] ]
}, },
{
"before": [
"u"
],
"commands": [
"undo"
]
},
{
"before": [
"<C-r>"
],
"commands": [
"redo"
]
},
{ {
"before": [ "before": [
"<Leader>", "<Leader>",
@ -190,7 +205,7 @@
"g" "g"
], ],
"commands": [ "commands": [
"workbench.action.quickOpen" "workbench.action.showAllSymbols"
] ]
}, },
{ {
@ -199,7 +214,16 @@
"f" "f"
], ],
"commands": [ "commands": [
"workbench.files.action.showActiveFileInExplorer" "workbench.action.quickOpen"
]
},
{
"before": [
"<Leader>",
"t"
],
"commands": [
"breadcrumbs.focus"
] ]
}, },
{ {
@ -211,33 +235,6 @@
"editor.action.showHover" "editor.action.showHover"
] ]
}, },
{
"before": [
"<Leader>",
"<Enter>"
],
"commands": [
"editor.action.revealDefinition"
]
},
{
"before": [
"<Tab>"
],
"after": [
">",
">"
]
},
{
"before": [
"<S-Tab>"
],
"after": [
"<",
"<"
]
}
], ],
"vim.insertModeKeyBindings": [ "vim.insertModeKeyBindings": [
{ {
@ -248,9 +245,67 @@
"after": [ "after": [
"<Esc>" "<Esc>"
] ]
} },
{
"before": [
"<C-j>"
],
"after": [
"<ESC>",
"j",
"a",
]
},
{
"before": [
"<C-k>"
],
"after": [
"<ESC>",
"k",
"a",
]
},
{
"before": [
"<C-h>"
],
"after": [
"<ESC>",
"h",
"a",
]
},
{
"before": [
"<C-l>"
],
"after": [
"<ESC>",
"l",
"a",
]
},
], ],
"vim.visualModeKeyBindings": [ "vim.visualModeKeyBindings": [
{
"before": [
"J"
],
"after": [
"5",
"j"
]
},
{
"before": [
"K"
],
"after": [
"5",
"k"
]
},
{ {
"before": [ "before": [
"<Tab>" "<Tab>"
@ -276,5 +331,4 @@
"extension.vim_escape" "extension.vim_escape"
] ]
} }
] ],
}