cancel
Showing results for 
Search instead for 
Did you mean: 

XML formatting in business application studio (Aligning attributes in new line)

mark05
Explorer
0 Kudos
1,318

Hey community,

Does anyone know a way to format XML files in such a way that each other attribute is arranged after the first in a new line, but not with a tabulator (like XML tools it does) but aligned under the first attribute?

I usually use WebStorm, which already supports this formatting in standard, but I do not find any way in the Business Application Studio.

In VS code there is the "Pretty XML" extension, which makes it just the way I want it. However, the BAS does not seem to be supported. I can install the extension, but when formatting, the loading bar will always be 30% and nothing will happen.

Here are some samples to prove I'm right:

I'm happy about any idea or help.

BR Mark

Accepted Solutions (0)

Answers (1)

Answers (1)

ido_perez
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

Thanks for the feedback. We will check why Pretty XML doesn't work.

In the meantime, I can recommend "XML Tools" extension. It works in BAS and it has far more downloads in the VSCode marketplace then Pretty XML.

mark05
Explorer
0 Kudos

Thanks for checking.

Yes I know XML Tools, as I mentioned in my original post. But unfortunately it's not able to align the properties like I want it.

ido_perez
Product and Topic Expert
Product and Topic Expert

Thanks for the feedback. We will check why Pretty XML doesn't work in BAS.