Magento 2

Resolving XSD Locations for PHP Storm in Magento 2 Projects

Magento 2 ships with a handy console command to generate an XML file containing the locations of all of its XSD files:

bin/magento dev:urn-catalog:generate ../.idea/misc.xml

The file should be generated in the .idea directory in the root of the project in PHP Storm, and once generated should automatically be associated with the application.