PhpStorm terminal shortcuts: switch tab, return to editor, etc. (Mac)
I'd suggest simply adding another keyboard shortcut for accessing the terminal. E.g. ⌘0
F12 is the default shortcut for Mac and Linux OS.
This shortcut will toggle terminal focus. The default F12 shortcut for Mac (dunno about Windows) will not.
You may need to restart PhpStorm to hijack ⌘0 or whatever you choose.
Switching between Terminal tabs can be done using the same shortcut as Editor tabs: Alt+Left/Right on Windows using Default keymap (on Mac it would be Cmd + Shift + [ and Cmd + Shift + ] (or whatever you have got there for
Main Menu | Window | Editor Tabs | Select Next/Previous Tab
-- you can verify/change it in yourPreferences | Keymap
)).Project View tool window shortcut (Alt+1 on Windows or Cmd+1 on Mac) does not work indeed if used in Terminal.. but shortcuts for Favorites or Structure tool windows still work just fine.
Therefore I may suggest to jump to Structure via Alt+7 (Cmd+7 on Mac) first and then just use Esc to get into Editor). P.S. See if recording macro with such sequence will work for you (you can assign custom shortcut to it).