A VS Code extension that formats Salesforce Omnistudio metadata XML files. It pretty-prints embedded JSON, sorts Data Mapper items deterministically, and minifies on deploy so diffs stay readable and whitespace doesn't consume the character limit (on deployment).
Features
Format on save — automatically formats Omnistudio files when you save them in VS Code
Format on retrieve — after retrieving source from an org, files are formatted before being written to disk
Minify on deploy — before deploying, embedded JSON is compacted to reduce payload size; the file is re-formatted after deploy completes
Format directory — right-click any folder in the Explorer and format all Omnistudio files inside it
Format workspace — format every Omnistudio file in the open workspace in one command
Pretty JSON — expands minified JSON stored in XML fields (OmniScript propertySetConfig, FlexCard dataSourceConfig, Integration Procedure customJavaScript, Data Mapper expectedInputJson / expectedOutputJson)
Sorted Data Mapper items — omniDataTransformItem entries are sorted by globalKey so field-level diffs are meaningful