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?
Getting Started: Right-click with any file and select "Format XAML" to format your XAML source code.
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.
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.
To view the settings, choose Tools > Options > Text Editor > XAML.
Both Ctrl+E, D, and Ctrl+K, Ctrl+D work for me.
or Edit->Advanced->Format Document
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With