Created
February 24, 2021 21:42
-
-
Save DominicWatts/58eabf486f4ee4ca1cd55841936c64a0 to your computer and use it in GitHub Desktop.
Magento 2 VSCode xml validation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://marketplace.visualstudio.com/items?itemName=redhat.vscode-xml | |
https://marketplace.visualstudio.com/items?itemName=viperet.vscode-magento-wizard | |
php bin/magento dev:urn-catalog:generate ./.vscode/catalog_tmp.xml | |
MagentoWizard: Generate XML Catalog command | |
select catalog_tmp.xml |
Doing MagentoWizard: Generate XML Catalog command
creates the catalog.xml
file but it was not detected in XML files. Adding path to the catalog.xml
file in Red Hat XML plugin's "XML: Catalogs(xml.catalogs
) setting did the trick.
So add this in VSCode settings.json
"xml.catalogs": [
"/abs/path/to/project/.vscode/catalog.xml"
],
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Should be:
php bin/magento dev:urn-catalog:generate --ide=vscode ./.vscode/catalog_tmp.xml