I can use F12 to jump to project tree (if it was the last tool that I used), but is there a shortcut for jumping back to editor?
252
votes
8 Answers
24
votes
14
votes
7
votes
4
votes
This is definitely a workaround, but, on mac os the following keystrokes work,
[ SHIFT + CMD + A ] > type "edit" > [ ENTER ]
So, I created a Service using Automator as follows,
- receives no input
- active for my IDE only ( phpstorm )
- runs an AppleScript ( see below )
Then I mapped the Service via "System Preferences > Keyboard > Shortcuts > Services" to
[ CTRL + OPTION + CMD + i ]
The Automator Service, contains the following AppleScript,
on run {input, parameters}
tell application "System Events"
keystroke "A" using {shift down, command down}
delay 0.2
keystroke "edit"
delay 0.2
keystroke return
end tell
return input
end run
2
votes
There is no perfect solution, since Escape doesn't work if your other Tool Window is a Terminal, Windowed... as a result there is an open ticket on Jetbrains, bug tracking site see this link.
Also, if you have "Autoscroll to Source" disabled (default state in Intellij):
- Escape puts cursor in file currently visible in editor (As mentioned in the other Answers)
- F4 puts cursor in file currently selected in the Project view.
F12
thank you! – Mahdi mehrabi