Tip Of The Day… Did You Know How To Format Your XAML?

A reader wrote and asked: "A quick question: how did you set your VS to format the XAML in the way that it does?"

Here's how to do it:

In Visual Studio click on Tools -> Options

Tools-Options

When the Options window opens, make sure Show All Settings is clicked, and then click on the triangle next to Text Editor to expand that section

OptionsWindow

Scroll down to XAML and expand it. Click on each sub-category (General, Tabs, and expand Formatting) to set the options for formatting XAML the way you want. When you are done click OK.

XAML Options

Once all of your options are set the way you want them, you may want to back up your options by selecting Tools -> Import and Export Settings (a topic for another Tip of the Day)

Technorati Profile

Unknown's avatar

About Jesse Liberty

** Note ** Jesse is currently looking for a new position. You can learn more about him at https://jesseliberty.bio Thank you. Jesse Liberty has three decades of experience writing and delivering software projects and is the author of 2 dozen books and a couple dozen online courses. His latest book, Building APIs with .NET, is now available wherever you buy your books. Liberty was a Team Lead and Senior Software Engineer for various corporations, a Senior Technical Evangelist for Microsoft, a Distinguished Software Engineer for AT&T, a VP for Information Services for Citibank and a Software Architect for PBS. He is a 13 year Microsoft MVP.
This entry was posted in z Silverlight Archives. Bookmark the permalink.