Reputation: 20049
I'm wondering within PhpStorm when you have a tab active, is there anyway to automatically make the project view on the left hand side scroll/show that file within the view?
If not, is there anyway to quickly show it for any tab you have open?
Upvotes: 4
Views: 3857
Reputation: 2716
Names have changed in phpStorm 2020, same place though
Autoscroll to Source
-> Open Files with Single Click
Autoscroll from Source
-> Always Select Opened File
To get it click on the gear icon at the top right corner of the project tool window
Official Doc
Upvotes: 5
Reputation: 165108
Just enable Autoscroll from Source
option in Project View panel (e.g. menu under cog icon or via right click menu on tool window title bar).
If you want to do this on demand only (instead of automatically) then use Navigate | Select In... | Project View
(Alt + F1, 1 using default keymap) whenever is needed -- this shortcut works from many places (e.g. Search results; Navigate to... popups etc).
Upvotes: 6