views:

544

answers:

2

I am writing a windows service in VS2008 - c#. When I double click on a .cs file in the Solution Explorer it opens in Design View by default (Windows Form Designer). Is there a way to configure it to open in Code View (Text Editor) by default as this is driving me crazy.

Thanks

A: 

Non-default method -> right-click and select "view code"...

For a default method, a quick Google search turned up this by Jon Skeet.

ZombieSheep
Or just press F7 key...
Mr. Brownstone
@Mr. Brownstone - Yes, another brilliantly simple suggestion. :)
ZombieSheep
+2  A: 

Right-click on the .cs file and select "Open With". When the dialog opens, pick "CSharp Editor", and click the "Set as Default" button. All the form files will now open in source editor. You can always go back and pick "CSharp Form Editor" when you want to go back.

Mel
Genius, thank you.
Xetius