Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there a keyboard shortcut to switch between XAML and Designer in VS 2012?

When switching from a code file to a XAML file in Visual Studio 2012, the focus goes to the designer. If I want to edit the XAML (which is 99% of the time), I need to use the mouse to move the focus to the XAML code/markup window. Is there a way to move focus to the XAML without the mouse?

NOTE: There are similar questions in SO, but they deal with moving between code behind and XAML designer.

like image 302
Erick T Avatar asked Nov 21 '12 18:11

Erick T


People also ask

How do I view XAML Designer in Visual Studio?

These include the artboard (which is the visual design surface), XAML editor, Document Outline window (Objects and Timeline window in Blend for Visual Studio), and Properties window. To open the XAML Designer, right-click a XAML file in Solution Explorer and choose View Designer.

What does Ctrl t'do in Visual Studio?

This brings up the class so you can click to view the class.


2 Answers

Yupp there sure is, just use Shift+F7 ;)

like image 157
Chris W. Avatar answered Oct 01 '22 18:10

Chris W.


For 99% of the times, you may want to set it to default

I don't know about other version, but in Visual Studio 2010, from the menu bar select ToolsOptions..., from the dialog, select Text EditorXAMLMiscellaneous, tick the Always open documents in full XAML view. Now everytime an XAML file is double clicked, it'll open in XAML (code) view, not design view.

Visual Studio 2010 XAML Settings

I hope the image is not too big

like image 38
BlackFur Avatar answered Oct 01 '22 18:10

BlackFur