Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

like image 894
Xetius Avatar asked Jan 05 '09 13:01

Xetius


1 Answers

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.

like image 62
Mel Avatar answered Oct 05 '22 10:10

Mel