I know that you can jump from almost all windows in Intellij IDEA to the editor window with Esc. In Intellij\'s terminal window, this does not work. Does anyone k
Running IDEA 13 on OSX
Expanding on Mark Vedder's answer, here's my experience so far:
⌥F12(Alt+F12) (Terminal
) will toggle the terminal tool window visibility, so it will take you back to the editor once hidden. Similar effect with ⇧⎋(Shift+Esc)(Hide Active Tool Window
), which will hide the active tool window, putting focus back on the editor.
No good if you want Terminal visible at all times
While it's a great idea to record a macro that will take you back to the editor through scripted interaction, it fails to work in practice. For one thing, Terminal will intercept most key strokes, so you won't be able to trigger the macro. Even when you do manage to trigger the macro through its shortcut key from some other tool window (the Project tool window for example), it won't work (even though Script execution finished
will display along the bottom of the IDEA window)
Doesn't work
⌃⇥ won't work either as the Terminal window seems to intercept most key combinations. But even if it did work, it would switch the editor to the next file, so you'd still need to do a ⌃⇧⇥ to return to the original one (as Mark pointed out).
Doesn't work but don't really mind as it spares another annoyance
While Terminal has focus, it appears some Tools
shortcuts are still accessible as long as you haven't reassigned them in Preferences->Keymap
(very important you don't touch these - I tried unassigning and reassigning ⌥1(Project
) and it would no longer trigger from within Terminal!). Invoking any of these shortcuts twice will toggle that Tool window, eventually taking you back to the editor. For example, I don't normally use the Favorites Tool Window
(i.e. not normally visible), so whenever I need to break out of Terminal I simply type ⌥2 x 2.
Maybe works for you?
The ⎋ key, when used on any Tool Window
, will shift focus back to the editor. So, similar to (4.), first do ⌥2 or any other working shortcut to move focus out of Terminal to a more well-behaved Tool Window
, then ⎋.
Same as (4.)