Page view counter

Jesse Liberty - Silverlight Geek

More Signal Less Noise

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

Posted: Jan 28 2008, 10:00 AM by jesseliberty | with 2 comment(s)
Filed under:

Comments

BenHayat said:

Oh man, I love this new style; God bless Jesse Liberty for saving my eyes and my sanity! ;-)

# January 28, 2008 10:04 AM

SilverAnt said:

Quick add - if nothing happens when you click OK on the window Mr. Liberty has shown, you need to do the following combination - CTRL + E + D. At least that worked for me. Great tip - 10x!

# February 3, 2008 8:41 AM