Pressing Ctrl+W closes the active editor window. When no more editors are open, Ctrl+W terminates VSCode. Could not find a related setting.
To me this is unexpected. Is it easy to prevent this?
Just realized that Ctrl+W is "close Window" while Ctrl+F4 is "close editor". Maybe I should just use the close editor command.
{
"key": "ctrl+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
},
Minus stands for "remove keybinding".
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