Auto Indenting XML Attributes in VS2010

Here is something I’m definitely going to forget, the following post shows how to setup attribute indentation on a separate line with the auto-formatting (Ctrl+K+F) command.

http://darkeyedev.blogspot.com.au/2010/10/visual-studio-auto-formatting-of-xml.html

In case this link becomes dead in the future, here is what you need to do as quoted from the post.

"Visual Studio 2010 > Tools > Options > Text Editor > XML > Formatting > Attributes > Select 'Align attributes each on a separate line'."
Uncategorized

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s