JEAZ The bump and grind of daily SysAdmin life

15Sep/140

Long XML Attributes Relief

If you deal with XML attributes running off the page..

[xml][/xml]

Visual Studio has a setting to automatically indent XML attributes!
Long strings automatically turn into the nice auto-indented code below

[xml wrap:true][/xml]

Just go to Options and look under Text Editor > XML > Formatting Section Attributes

This option is particularly helpful for SharePoint XML and XSLT code.
Tags in SharePoint often have 50+ attributes!

Filed under: SharePoint No Comments