代码编辑器视图而不是设计器

编程入门 行业动态 更新时间:2024-10-11 03:23:47
本文介绍了代码编辑器视图而不是设计器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

有一个自定义属性可以应用于一个类,这会导致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")]

更多推荐

代码编辑器视图而不是设计器

本文发布于:2023-11-07 19:12:26,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1567190.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:视图   编辑器   而不是   代码

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!