Search code examples
phpstorm

Show opened file in tab in project window view in PhpStorm


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?


Solution

  • 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).