PhpStorm + Magento2: Handy Tips

Created: February 22, 2017

Last updated: April 20, 2022

This post is going to be more of a living document where i'll be noting down all of the handy tips and tricks i've come across to make working with magento2 and phpstorm easier.

Easy Navigate to Magento\Framework classes

What you'll need to do is setup a source folder. In PhpStorm click on the settings and find "Directories" from here find the framework folder located in vendor/magento/framework and mark this as a "Sources" folder it should look like the following:

phpstorm vendor settings

From here click on the little 'P" icon

phpstorm icon

And enter the Namespace

phpstorm namespace settings

You should now be able to click through to magento framework classes! :)