No Command+Q again prompt to quit app?

On most Mac apps I use, hitting Command+Q on accident instead of Command+W (like Chrome to close a tab) will pop up some text saying to hit Cmd+Q again to quit... with PHPStorm it just quits, which is a giant pain in the butt especially when I have to have multiple projects open (often).

Is there some way to have it do this?

I'm not talking about the Confirm Exit which blocks shutdown; just for Cmd+Q accidental hit.

Comment actions Permalink

No, there's no separate setting for this.

The problem is discussed at (feel free to vote/comment). But I would just rather suggest to remove cmd+q shortcut in Preferences | Keymap: Main menu > File > Exit.

Comment actions Permalink

Unfortunately removing Cmd+Q shortcut does not work in IDEA 2019.2 (version I tested); the Cmd-Q behaviour seems hardwired.

My workaround is the wonderful 'Karabiner' keystroke interceptor program for MacOS which allows you to (for instance) 'swallow' Cmd-Q IF it is held for less than 3 seconds, IF the frontmost application bundle is "com.jetbrains.intellij" 

Comment actions Permalink

I can confirm that removing the Cmd+Q shortcut doesn't work.

Comment actions Permalink

An update from a developer:

> To avoid accidental quit in IntelliJ IDEA please turn this setting on:


Please sign in to leave a comment.