Using Escape

How to exit dialogs and return your focus to the editor

Pressing Escape will dismiss the current dialog if there's one open and return your focus to the editor. If you open a tool window such as the Project Window and then press Escape, IntelliJ IDEA will return the focus to your editor but leave the Project Tool window open.