Prompt if I really want to close visual studio?

Anyone know if I can have visual studio prompt me if I really want to close it (I believe Eclipse prompts before closing)? Or some other way of stopping it from closing when I hit the "X".

Thanks

EDIT: To clarifybasically I wanted this b/c I have attempt to close an app that is in the foreground but accidentally closed VS b/c the other app was not maximized. VS can be rather slow to start up on my development machine (initialization of a couple of addin's and toolkits slow it down a fair bit).

In terms if annoying messages, I can understand that, but it could be an option (turned off by default) or you could be asked this question once and allowed to opt out from then on. This is exactly what Eclipse does.

In terms of my acceptance rate ... I can't defend that. I should be going back and accepting or clarifying my questions and will try to do so in the future.


Solution 1:

There are some utilities that allow you to do this for any application. For example, see http://www.donationcoder.com/Software/Skrommel/index.html#NoClose

Solution 2:

This works in newer versions of Visual Studio:

https://marketplace.visualstudio.com/items?itemName=NikolayBelyh.ClosePrompt2017