Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>OnelineifyNew to Visual Studio Code? Get it now.
Onelineify

Onelineify

rescuecreative

|
790 installs
| (2) | Free
Converts multi-line objects and arrays to single-line notation
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Onelineify

Onelineify tackles those annoying moments when you have an object or an array broken out onto multiple lines but you really don't need that and you'd prefer it was just on one line. Now you can fix it quickly.

Onelineify in action

Extension Settings

This extension contributes the following settings:

  • onelineify.maxLineLength: Defaults to 120. If a onelineified line would be longer than this value, onelineifying is prevented.
  • onelineify.padCurlyBraces: Defaults to true. Ensures a single space after an opening { and before a closing }
  • onelineify.padSquareBrackets: Defaults to false. Ensures a single space after an opening [ and before a closing ]
  • onelineify.padParens: Defaults to false. Ensures a single space after an opening ( and before a closing )

Known Issues

None so far!

Release Notes

0.0.3

  • Better formatting of extension documentation
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft