https://github.com/artdiniz/quit-control-vscode
➡️ Stop mistyping keyboard shortcuts and quitting VSCode unintentionally
https://github.com/artdiniz/quit-control-vscode
vscode vscode-extension vscode-plugin
Last synced: about 2 months ago
JSON representation
➡️ Stop mistyping keyboard shortcuts and quitting VSCode unintentionally
- Host: GitHub
- URL: https://github.com/artdiniz/quit-control-vscode
- Owner: artdiniz
- License: mit
- Created: 2016-12-29T04:02:52.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T17:34:52.000Z (over 3 years ago)
- Last Synced: 2025-11-27T21:37:10.840Z (5 months ago)
- Topics: vscode, vscode-extension, vscode-plugin
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=artdiniz.quitcontrol-vscode
- Size: 8.87 MB
- Stars: 48
- Watchers: 1
- Forks: 2
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Quit Control
Do you hate mistyping `⌘Q` and shutdown VSCode with all your unsaved and beloved work? This extension is for you!
Do you hate the fact that `⌘W` or `CTRL+W` closes VSCode if there are no open files? This extension is for you!
This extension will make all "quitish" keyboard shortcuts prompt you if you really want to close everything if they were going to do so.
## Features
1. If at any moment you hit `⌘Q` (on mac) or `Ctrl+Q` (on other platforms) we will prompt you if you really want to quit:
* You can press `Esc` to dismiss and continue your work:

* You can press `Enter` to confirm and quit VSCode:

2. If there is an open file, `⌘W` (on mac) or `Ctrl+W` (on other platforms) will close it as usual. But if there is no open file, instead of closing VSCode window we will prompt you first:

3. If you hit `⇧⌘W` (on mac) or `⇧+Ctrl+W` (on other platforms), instead of closing VSCode window, we will prompt you first:

## Release Notes v4.0.0 - 2021-07-25
### Added
- New configuration `quitControl.closeTabShouldTryToCloseEmptyWindow`, defaults to `true`. Toggle macOS-like behavior of closing an empty window with the same shortcut of closing a tab: `Cmd+W` (macOS); `Ctrl+W` (Linux and Windows); `Ctrl+F4` (Windows).
- (Linux and Windows) Preventing `Alt+F4` from closing the window and prompting you instead. Consistent only on Windows for now, as VScode for Linux distros doesn't always support keybindings on `Alt+F4`.
- (Windows) New configuration `quitControl.enableQuitKeybindingOnWindows`, defaults to `true`. Enables `Ctrl+Q` to quit VSCode on Windows.
### Fixed
- Enabling extension to work on Remote Containers without the need to install it again. From [PR#29](https://github.com/artdiniz/quit-control-vscode/pull/29).
## Source
[GitHub](https://github.com/artdiniz/quitControlVSCode)
## License
[MIT](https://raw.githubusercontent.com/artdiniz/quitControlVSCode/master/LICENSE)
## Credits
This [extension's icon](https://github.com/artdiniz/quitControlVSCode/blob/master/images/icon.png) was created by Hrag Chanchanian from the Noun Project and its colors where changed by me for use in this extension.