Skip to content

Feature Request: Group Aware Sort JSON #256

Open
@hyrious

Description

@hyrious

Proposal

Like TypeScript's Group aware Organize Imports, I want to sort each group of JSON (separated by blank lines).

For example:

{
  // Workbench
  "workbench.layoutControl.enabled": false,
  "workbench.productIconTheme": "icons-carbon",

  // Other
  "cSpell.userWords": ["hyrious"],
  "window.commandCenter": false
}

Should be sorted as is, instead of moving the cSpell field to top.

Additional Info

Groups can be created inside any JSON object or array, even nested:

{
  "foo2": 1,
  "foo1": {
    "bar2": "...",

    // Group
    "bar3": "..."
  },
  "buzz": 2
}

I think it is fine to support or not to support groups at any level.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions