Is there any way to make Visual Studio show the code of a control / form by default instead of the designer? I tend not to be a fan of the designers as they add bloat.
+34
A:
Right-click on a file and select "Open With..."
Select "CSharp Editor" and then click "Set as Default".
Jon Skeet
2008-12-30 08:22:10
A:
Thank you. This will eliminate a lot of annoyance for me. I don't use the designer nearly as often as the code.
Greg
2010-03-18 13:02:13
A:
I like having my forms open up in Design View, but I made a partial class file which had only code and Visual Studio wanted to open it in Design View all the time. To prevent Visual Studio from realizing that a specific source file can be loaded by Designer, look at the csproj file for the Compile Include tag of the appropriate source file and remove the SubType tag underneath it.
ajs410
2010-04-07 18:03:23