Reputation: 41757
Visual Studio offers the ability to extend the Intellisense support when editing XML documents by specifying an XSD that will be used to validate the XML.
Does Visual Studio offer any such support for the Razor Editor, such that I can specify an XSD and Intellisense will offer autocomplete suggestions for these new types?
Upvotes: 4
Views: 339
Reputation: 3685
This will probably work. Visual Studio uses html_5.xsd
file to provide autocomplete. you can provide your xsd by placing it next to html_5.xsd
(which is probably in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Packages\schemas\html
) and then editing html_5.xsd
to include your file. A Visual Studio restart is required.
<xsd:include schemaLocation="MyAwesomeTypes.xsd" />
Upvotes: 1