How to open code on double cick on form by default?

谁说胖子不能爱 提交于 2019-12-06 16:49:31

问题


Is there an extension for Visual Studio 2010 for opening code for forms, components etc. in WinForms application projects on double click in solution explorer by default (and in designer view via context menu)?


回答1:


item -> right click -> Open With -> Source Code (Text) Editor -> press Set as Default button




回答2:


you can set visual studio's default editor to be the code view rather than the form view. Just right-click and choose Open With... then you can set the default in there.




回答3:


You can press F7 to toggle between designer and code.




回答4:


Not sure about double click, but if you select the file in Project Explorer (ex: Form1.cs) and press F7 you see the code.



来源:https://stackoverflow.com/questions/7037905/how-to-open-code-on-double-cick-on-form-by-default

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!