3.1 KiB
title | date | excerpt | tags | has_tweets | |
---|---|---|---|---|---|
Quick Project Switching in PhpStorm | 2018-09-04 | How to quickly switch between projects in PhpStorm. |
|
true |
Following a recent conversation on Twitter with socketwench about project switching in PhpStorm, I thought I’d document my workflow here.
Here is the original tweet and my initial response. I also have a lot of PhpStorm projects, and as I’m always working on multiple projects I regularly need to switch between them.
{% include 'tweet' with { content: '
I think you can start typing and it will filter?
— Oliver Davies (@opdavies) August 28, 2018', } %}On the PhpStorm welcome screen that displays when you first open it, your recent projects are displayed on the left-hand side of the screen, and are filterable. That means that I can start typing a project name, e.g. oli
, and I will only see projects that start with that input.
That’s great when opening a project from scratch, but what about when we’re already within a project and just want to be able to switch to another?
{% include 'tweet' with { content: '
You can also use 'Open recent' within the actions list, and then filter the list of projects. pic.twitter.com/k8G9iIQNP0
— Oliver Davies (@opdavies) August 28, 2018', } %}There’s also a way to access this list once PhpStorm is open, by clicking 'Open Recent' within the File menu. The issue here though is that this list is not filterable.
You can also access this list using the keyboard, though the 'Search everywhere' or 'Find action' panes, and these are filterable.
Once the 'Open Recent' option is selected, you see the same project list as on the welcome screen, which is filtered in the same way by starting to type potential project names.
Adding a Keyboard Shortcut
We can make this easier by adding a new keyboard shortcut. Within the Keymap preferences, you can search for 'Open Recent' and right-click it to add a new keyboard shortcut and define the key combination.
This this shortcut added, you can now use it to instantly bring up your recent projects list, filter it and switch project.