Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Object FormatterNew to Visual Studio Code? Get it now.
Object Formatter

Object Formatter

supervision

|
22 installs
| (0) | Free
Format Object to Single Line
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Object Formatter

This VS Code extension formats objects into a single line with appropriate newlines for better readability.

Features

  • Formats objects to a single line.
  • Adds newlines between each key-value pair.
  • Automatically adds quotes around keys if they are missing.

Usage

  1. Select the object or text you want to format.
  2. Run the "Format with Newlines" command from the command palette.
  3. Your object will be formatted with newlines added between the key-value pairs.

Requirements

  • VS Code version 1.96.0 or later.

License

This project is not licensed. You are free to do as you wish with the code, but please note that you do so at your own risk.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft