Skip to content

Instantly share code, notes, and snippets.

@gelanivishal
Last active February 21, 2017 01:38
Show Gist options
  • Save gelanivishal/2f2c95082684ec57d5d4983bde53f42a to your computer and use it in GitHub Desktop.
Save gelanivishal/2f2c95082684ec57d5d4983bde53f42a to your computer and use it in GitHub Desktop.
Magento 2 xml validation

Check updates to the GitHub today, Magento 2 introduced new command to automatically generate all the URN resolutions for the PhpStorm.

To use it: have Magento installed on the same machine as PhpStorm go to the root directory execute command

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

where .idea/misc.xml is path to your PhpStorm misc.xml file All of the URNs should be magically resolved now!

Check them under PhpStorm->Preferences -> Languages&Frameworks -> Schemas and DTDs PhpStorm 9.0 (windows) : File -> Settings -> Languages&Frameworks -> Schemas and DTDs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment