This is feature is available in VSCode through vscode.json-language-features builtin extension. I uses command pallet's "JSON: Sort Document" (json.sort) setting.
If possible add support for YAML documents as well.
If applicable, add mockups / screenshots to help present your vision of the feature
Check for existing issues
Describe the feature
Sort whole JSON document according to keys.
This is feature is available in VSCode through
vscode.json-language-features
builtin extension. I uses command pallet's "JSON: Sort Document" (json.sort
) setting.If applicable, add mockups / screenshots to help present your vision of the feature
Copied from: VS Code: Sort Lines and JSON object properties | bobbyhadz