VS Code Confirm Before Quit
The desktop version of VS Code has a new feature that pops a confirmation dialog before quitting the app.
This feature however has been available for VS Code for Web for some time, so it’s not entirely new.
Let’s go ahead and turn on this feature!
CTRL + SHIFT + P and type in
open settings and open the
The setting is called
window.confirmBeforeClose and can have 2 noticeable options:
keyboardOnly option brings up the confirmation dialog when a keybind is used (i.e
always option brings up the confirmation dialog whenever you’re trying to quit the app, be it by keybinding or by using the mouse.
So, your code should look like this:
I hope you found this article helpful.
Let me know what you think about this article through comments below, or on Twitter at @pelu_carol.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.