zed-industries / zed

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
https://zed.dev
Other
35.33k stars 1.79k forks source link

Sort JSON document #12026

Open arv-anshul opened 2 weeks ago

arv-anshul commented 2 weeks ago

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 possible add support for YAML documents as well.

If applicable, add mockups / screenshots to help present your vision of the feature

Copied from: VS Code: Sort Lines and JSON object properties | bobbyhadz

sort-json-object.gif (670×337)