Xetius
Xetius

Reputation: 46754

VS2008 Open .cs file in Code View instead of Design View

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

Answers (2)

Mel
Mel

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

ZombieSheep
ZombieSheep

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

Related Questions