In my standard MacOS terminal, alt+delete deletes to the prior word, but in the VS Code embedded terminal it deletes to the prior space. Bizarrely, alt+left correctly moves the cursor to the prior word. For example, given foo bar.baz before the cursor, alt+delete will delete bar.baz while alt+left will move the cursor to the start of baz. Is there a way to get the proper delete-word functionality?
Combine what's suggested by Mark and RxJx, set alt+backspace to deleteWordPartLeft work's for me on macOS.
{
"key": "alt+backspace",
"command": "workbench.action.terminal.deleteWordPartLeft",
"when": "terminalFocus"
},
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With