Author Topic: XML/XAML spacing for attributes on tags  (Read 2144 times)

abushne

  • Community Member
  • Posts: 18
  • Hero Points: 0
XML/XAML spacing for attributes on tags
« on: October 05, 2018, 04:28:43 PM »
I was recently trying to achieve a formatting for attributes on Tags for XAML files (which is based on XML) in SlickEdit and I am unable to achieve what I want. We like to layout our xaml  as follows:

<TagName  x:uID="someValue"
                  Name="SomeValue" >
   <ChildTag1 />
</TagName>

This is easily achievable in visual Studio as they have options that you can specify to have attributes One Per line and place the first one on the same line as the tag. 

Unfortunately in SlickEdit I cannot set something similar up, the only choices I seem to have are:

  • All the tag attributes on one line
  • All the tag attributes on one line, with word wrap
  • All the tag attributes on one line, with word wrap
  • One line IF one attribute
  • One per line.

What I would want/need is another option that would allow the "one per line" but the first attribute on the same line as the tag, I don't seem to see that...

Am I missing something?






patrick

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 1818
  • Hero Points: 151
Re: XML/XAML spacing for attributes on tags
« Reply #1 on: October 05, 2018, 05:04:32 PM »
You're not missing anything.  There's not currently a setting which does what you want.

abushne

  • Community Member
  • Posts: 18
  • Hero Points: 0
Re: XML/XAML spacing for attributes on tags
« Reply #2 on: October 05, 2018, 05:36:43 PM »
OK, thanks. I can post an enhancement request then :-)