Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML indentation using plugin for VS code - Wrap Attributes

I am looking for a way to use the plugin VS Code Pretty Formatter or some else plugin for ident XML files and its classes in two ways: Block and Inline. Is there some way I can get a result similar to it and is it possible to create a keyboard shortcut?

For example: block and inline indentation

like image 605
TulioVargas Avatar asked Mar 08 '26 19:03

TulioVargas


1 Answers

The XML extension can format XML files, and the default shortcut key is Shift+Alt+F (or select Format Document in the command palette). You can change the formatting style with xml.format.splitAttributes in the settings.

like image 147
umitu Avatar answered Mar 11 '26 09:03

umitu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!