Reputation: 46754
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
Upvotes: 5
Views: 3715
Reputation: 2385
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.
Upvotes: 11
Reputation: 29953
Non-default method -> right-click and select "view code"...
For a default method, a quick Google search turned up this by Jon Skeet.
Upvotes: 0