tags:

views:

22

answers:

2

When I open XSD files in Visual Studio, some of them open up as diagram representations, while some open up as code.

How do I switch between the diagram view and code view?

+1  A: 

Right Click on the XSD file and choose View Code... or F7 (Shift + F7 for designer)

Darin Dimitrov
I have opened it as a File, not part of any project. I do not see it in the Solution Explorer.
Raj More
A: 

In order to view the XSD as code in visual studio, you can right click on the document in the solution explorer, choose the Open With... From the menu that pops up, choose Xml Editor (or Xml (Text) editor if it's Visual studio 2010). This should open it in the source view.

Joe