Skip to content

[json] formatter should keep empty lines #23260

Closed
@donaldpipowitch

Description

@donaldpipowitch
  • VSCode Version: 1.11.0-insider

Steps to Reproduce:

  1. "json.format.enable": true
  2. Place some new lines inside a JSON and press save. New lines are removed.

Use case:

In bigger JSON files - especially ones that allow commenting (e.g. JSON5 or .vscode/settings.json) - it is useful, if we could use new lines, but still benefit from formatting.

Metadata

Metadata

Assignees

Labels

feature-requestRequest for new features or functionalityjsonJSON support issueson-testplan

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions