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 the .cs file in Solution Explorer, it opens in the default Design view (Windows Form Designer). Is there a way to set it up to open in Code View (text editor) by default, as it drives me crazy.

thanks

+4
source share
2 answers

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

+9
source

Custom method -> right click and select "view code" ...

For the default method, a quick Google search showed this Jon Skeet.

0
source

All Articles