vscode Q quit confirm code example
Example 1: vscode Q quit confirm
{ "key": "cmd+q", "command": "-workbench.action.quit" },
{ "key": "cmd+q cmd+q", "command": "workbench.action.quit" }
Example 2: vscode Q quit confirm
{
"key": "ctrl+w",
"command": "-workbench.action.closeWindow",
"when": "!editorIsOpen && !multipleEditorGroups"
}