Overview
We .Net developers use IntelliSense extensively in our everyone work. I am happy using IntelliSense for XML files like web.config file. Then one day I come across a XML file with schema not available out-of-the-box from VS (think about NHibernate hbm files). How can I use IntelliSense with it?
Reference
XML Schemas dialog in Visual Studio 2008
Steps
To use schema(s) for a XML file
- Open a XML file in Visual Studio 2008
- In menu bar, select "XML" => "Schemas…"
- In the "XML Schemas" windows, select "Use this Schema" in the "Use" column next to your desired schema
- Click OK, done!
The "XML Schemas" windows will search for schema files (.XSD) in your project or in folder %VS 2008 install folder%\xml\Schemas. You can also manually add schemas files using the "Add…" button
沒有留言:
發佈留言