Search code examples
laravel-5keyboard-shortcutsphpstorm

Shortcut for going to previous file in PhpStorm


I've installed the Laravel 5 IDE Helper and searched the Laravel Docs for a shortcut: is it possible going to the last file I edited?

For example: I'm editing the Controller File, skipping to a view, then want to go back to the Controller file. Or even Better, would it be possible using the Laravel Plugin, going from view->controller? Any Ideas?


Solution

  • Use Switcher (Ctrl + Tab) to switch to the most recently used tab(s) -- same idea as Alt + Tab in Windows.

    Partially similar functionality (recently used files, even those that are currently closed):

    • View | Recent Files (Ctrl + E)
    • View | Recently Changed Files (Ctrl + Shift + E)

    Another possible (partially related to your request) functionality: Navigate | Back or Navigate | Last Edit Location. Obviously, these actions depend on your further navigation in current view file after you came from controller -- the more places in this file you have visited/edited the more times you need to invoke these actions to go back to previous file.