Formatting/Indenting YAML Documents
Oxygen XML Developer Eclipse plugin includes support for formatting and indenting YAML documents. You can trigger a format and indent operation for your YAML document using the Format and Indent toolbar button.
Some of the formatting actions that are performed include:
To batch format/indent multiple YAML files, select and right-click the files in the Project Navigator view, then select Format and Indent Files.