How can I disable the Design-Mode in VisualStudio options

前端 未结 4 1617
有刺的猬
有刺的猬 2021-02-03 16:50

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

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

相关标签:
4条回答
  • 2021-02-03 17:25

    In vs2015 goto:

    Tools > Options > Xaml Designer

    Choose "Source View" for "Default Document view"

    or you can disable it completely by unchecking "Enable XAML Designer"

    In vs2010 goto:

    Tools > Options > Text Editor > XAML > Miscellaneous

    Under "Default View" Section

    check Always open documents in full XAML view

    0 讨论(0)
  • 2021-02-03 17:25

    Right click .xml file in "Source Explorer", select "Open With" and choose "Source Code(Text) Editor" as default.

    0 讨论(0)
  • 2021-02-03 17:29

    In VS 2015, It can be also achieved by clicking the collapse icon then clicking the XAML icon, 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.

    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

    Finally you can Save window layout from the window menu, and use the layout when you open your project next time.

    0 讨论(0)
  • 2021-02-03 17:36

    In VS 2017, navigate to Tools -> Options -> XAML Designer.

    Change the combobox labeled "Default document view" from "Split View" to "Source View".

    0 讨论(0)
提交回复
热议问题