未验证 提交 909356f6 编写于 作者: D Daniel Imms 提交者: GitHub

Merge pull request #98494 from connorskees/issue-98404

use ^H to delete word left in cmd.exe
......@@ -164,6 +164,14 @@ registerSendSequenceKeybinding(String.fromCharCode('W'.charCodeAt(0) - 64), {
primary: KeyMod.CtrlCmd | KeyCode.Backspace,
mac: { primary: KeyMod.Alt | KeyCode.Backspace }
});
if (platform.isWindows) {
// Delete word left: ctrl+h
// Windows cmd.exe requires ^H to delete full word left
registerSendSequenceKeybinding(String.fromCharCode('H'.charCodeAt(0) - 64), {
when: ContextKeyExpr.equals(KEYBINDING_CONTEXT_TERMINAL_SHELL_TYPE_KEY, WindowsShellType.CommandPrompt),
primary: KeyMod.CtrlCmd | KeyCode.Backspace,
});
}
// Delete word right: alt+d
registerSendSequenceKeybinding('\x1bd', {
primary: KeyMod.CtrlCmd | KeyCode.Delete,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册