Small tip – attaching projects on PHPStorm / WebStorm

This post is very, very small tip about nice feature, that I recently disovered on PHPStorm, but it’s also available on other JetBrains software. All their IDEs supports projects, we can create a lot of them and open many in the same way in separate windows, or by replacing currently opened project. But when we try to do this – using File menu and option to open new project – there is one additional option, to attach project. What is it and what can we achive using this option?

When we attach two separate projects, we have both on project list and tree view, also, repositories are common, if names of branches are the same. If you will then try to change branch, for example from master to dev, IDE will do this for both repositories. If we want to commit changes and then push them, IDE will display all attached projects. It’s very nice options for much faster work: for example I can attach project for frontend and backend in the same time, and work in whole project, without any distractions, without chaning window, screens etc. Do you know any interesting features in these or similar IDEs? Write comment and describe them!