Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the hotkey for formatting XAML in VS2010?

The hotkey Ctrl+E,Ctrl+D works for formatting C# code only, but not for XAML for some reason. Does anybody know what the hotkey is for it?

like image 537
Alexandre Avatar asked Feb 26 '12 13:02

Alexandre


People also ask

How do I format a XAML file?

Getting Started: Right-click with any file and select "Format XAML" to format your XAML source code.

What is the shortcut to format code in Visual Studio?

In the default configuration for Visual Studio Code, the command can be run using the shortcut Alt+Shift+F. To format a range, in an already opened project, open the document that you want to modify, select the specific range to format, right-click, and select Format Selection.

What is Ctrl KD in Visual Studio?

Ctrl + K + D (Entire document) Ctrl + K + F (Selection only) To find out which key bindings apply in YOUR copy of Visual Studio, look in the Edit > Advanced menu - the keys are displayed to the right of the menu items, so it's easy to discover what they are on your system.

How do I open XAML editor?

To view the settings, choose Tools > Options > Text Editor > XAML.


1 Answers

Both Ctrl+E, D, and Ctrl+K, Ctrl+D work for me.

or Edit->Advanced->Format Document

like image 108
devdigital Avatar answered Sep 30 '22 09:09

devdigital