When folding is useful

Folding is a way to reduce visual noise while reviewing nested JSON. A one-line document can still be valid, but it does not provide a useful line range to collapse. Use formatting when a readable structure is the goal, and keep an unchanged copy when the original whitespace matters to another process.

Format before folding

  1. Open the intended JSON document and confirm its source.
  2. Run the current pretty-print command.
  3. Review indentation and folding markers, then collapse only the branch you are inspecting.
  4. Validate separately when the document must satisfy a JSON Schema.

The legacy Help names a specific shortcut and selection behavior. Confirm current shortcuts, formatting behavior, and large-file suitability in the supported Windows release.

Related tasks