本文介绍了代码编辑器视图而不是设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有一个自定义属性可以应用于一个类,这会导致Visual Studio始终在代码视图中而不是设计器中打开它。 我忘记了又是什么,在Google上找到它是个棘手的事情。 有人能提醒我它是什么吗?
解决方案没有什么比这更棘手了...... 右键单击要打开的文件,选择打开方式... ,选择你的偏好,点击设为默认值 - 你做完了......
别担心,我发现了 - 事实上我的消息历史很深。 [System.ComponentModel.DesignerCategory(Code)]
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?
解决方案 Nothing tricky about it... Right click the file you want to open, select Open With..., choose your preference, hit Set as Default - you done...Don't worry, I've found it - deep in my history of messages in fact. [System.ComponentModel.DesignerCategory("Code")]更多推荐
代码编辑器视图而不是设计器
发布评论