Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Stop Visual Studio 2010 opening XSDs in design mode

Visual Studio 2010 now opens XSD files in design mode by default. I can't find any option for disabling this. Is there a way to always open XSD files in text mode?

like image 834
cbp Avatar asked Jun 23 '10 06:06

cbp


People also ask

How do I change the XML Schema?

To edit a fileSelect the Use XML editor to view and edit the underlying XML Schema file link on the Start View. The XML editor appears with the new file open. Copy the XML Schema sample code from Purchase order schema and paste it to replace the code that was added to the new XSD file by default.

What is difference between XSD and XML?

XSD defines elements and structures that can appear in the document, while XML does not. XSD ensures that the data is properly interpreted, while XML does not. An XSD document is validated as XML, but the opposite may not always be true. XSD is better at catching errors than XML.

How do I view XSD files in Visual Studio?

You can access the XML Schema Explorer from a . vb file that has a Visual Basic XML literal associated with an . xsd file. To see the schema set in the XML Schema Explorer, right-click an XML node in an XML literal or an XML namespace import and select the Show in Schema Explorer command.

How do I open an XML File in Visual Studio?

On the File menu, point to New, and click File. Select XML File in the Templates pane and click Open. A new file is opened in the editor.


1 Answers

Right click on an XSD file, choose "Open with..." and select the appropriate option - then click on "Set as Default" before you actually open it.

like image 124
Jon Skeet Avatar answered Sep 19 '22 16:09

Jon Skeet