visual-studio 如何在 VisualStudio 选项中禁用设计模式
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1211820/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How can I disable the Design-Mode in VisualStudio options
提问by Mario Binder
回答by Y?ld?ray Meri?
In vs2015goto:
在vs2015 中转到:
Tools > Options > Xaml Designer
工具 > 选项 > Xaml 设计器
Choose "Source View" for "Default Document view"
为“默认文档视图”选择“源视图”
or you can disable it completely by unchecking "Enable XAML Designer"
或者您可以通过取消选中“启用 XAML 设计器”来完全禁用它
In vs2010goto:
在vs2010 中转到:
Tools > Options > Text Editor > XAML > Miscellaneous
工具 > 选项 > 文本编辑器 > XAML > 杂项
Under "Default View" Section
在“默认视图”部分下
check Always open documents in full XAML view
检查始终以完整的 XAML 视图打开文档
回答by Kubilay Kara
Right click .xml file in "Source Explorer", select "Open With"and choose "Source Code(Text) Editor"as default.
右键单击“源代码资源管理器”中的.xml 文件,选择“打开方式”并默认选择“源代码(文本)编辑器”。
回答by pennyrave
In VS 2017, navigate to Tools -> Options -> XAML Designer.
在 VS 2017 中,导航到工具 -> 选项 -> XAML 设计器。
Change the combobox labeled "Default document view" from "Split View" to "Source View".
将标有“默认文档视图”的组合框从“拆分视图”更改为“源视图”。
回答by Ashraf Abusada
In VS 2015, It can be also achieved by clicking the collapseicon then clicking the XAMLicon, it will first show designer only then it will show the xaml code only and keep the designer collapsed just in case you need it.
在 VS 2015 中,也可以通过单击collapse图标然后单击XAML图标来实现,它会先显示设计器,然后仅显示 xaml 代码,并保持设计器折叠以备需要时使用。
Click the collapse icon (The double arrows)
Click the XAML icon (XAML with code sign)
This is what it should look like after clicking the XAML icon
这是单击 XAML 图标后的样子
Finallyyou can Save window layoutfrom the window menu, and use the layout when you open your project next time.
最后,您可以Save window layout从窗口菜单中,并在下次打开项目时使用布局。

