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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:49:33  来源:igfitidea点击:

How can I disable the Design-Mode in VisualStudio options

visual-studioxaml

提问by Mario Binder

How can I use only the XAML-Code-View without Visual Studio loadthe Design-Mode?

如何在没有 Visual Studio加载设计模式的情况下仅使用 XAML-Code-View ?

I need every Time disable the designMode, i cant find this in my options...

我每次都需要禁用设计模式,我在我的选项中找不到这个...

alt text
(source: biggle.de)

替代文字
(来源:biggle.de

回答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 collapse icon

单击折叠图标(双箭头)单击折叠图标

Click the XAML icon (XAML with code sign)Click the XAML icon

单击 XAML 图标(带有代码符号的 XAML)单击 XAML 图标

This is what it should look like after clicking the XAML icon

这是单击 XAML 图标后的样子

Click 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从窗口菜单中,并在下次打开项目时使用布局。