Click here to Skip to main content
15,890,527 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There's a custom attribute which you can apply to a class which causes Visual Studio to always open it up in code view rather than designer.

I've forgotten what it is yet again, and its a tricky thing to find on Google.

Can someone remind me what it is?
Posted

Nothing tricky about it...
Right click the file you want to open, select Open With..., choose your preference, hit Set as Default - you done...
 
Share this answer
 
Comments
Rob Philpott 7-May-14 7:52am    
Indeed, but that's not what I want to do. I want the setting in the source code itself.
Don't worry, I've found it - deep in my history of messages in fact.

[System.ComponentModel.DesignerCategory("Code")]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900