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

MultiLine Formatter

getchenge

|
20 installs
| (0) | Free
Format the object-like structure into multiple lines
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

multiline-formatter README

Features

It's a plugin for formatting code like one-line object to multiple line. For example,

const { a, b, c } = { a : 1, b : 2, c : 3 };

When you place the cursor on this line and execute the format command (Cmd+Alt+i), it will be improved to:

const {
  a,
  b,
  c
} = {
  a: 1,
  b: 2,
  c: 3
};

It can also format array,

const arr = [1, 2, 3, 4];

to

const arr = [
  1,
  2,
  3,
  4
];

This command also works for function parameters,

function funcWithManyParams({ a, b, c, d }) { return; }

to

function funcWithManyParams({
  a,
  b,
  c,
  d
}) {
  return;
}

Release Notes

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