Skip to content
| Marketplace
Sign in
Visual Studio Code>Formatters>JustifyNew to Visual Studio Code? Get it now.
Justify

Justify

magiccoder

|
670 installs
| (1) | Free
Justify-align plain text.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Justify

Justify-align plain text.

Features

  • custom line width
  • preserve indentation
  • preserve multiline prefix
  • preserve comments
  • format text lists
  • indent list items
  • Markdown support
  • LaTeX support

Demo

Align code comments:

align code comments

Align code comments with custom line width:

align code comments with custom line width

Align markdown:

align markdown

Extension Commands

The extension provides the following commands, with self-descriptive names:

  • Justify file
  • Justify file (using custom line width)
  • Justify line
  • Justify line (using custom line width)
  • Justify paragraph
  • Justify paragraph (using custom line width)
  • Justify selection
  • Justify selection (using custom line width)

The commands with custom line width will prompt the user for a line width value before executing.

Extension Settings

The setting justify.defaultLineWidth specifies the default line width used to justify text when not using custom value provided by the user via prompt.

This value can be set on a per-language basis:

{
    "justify.defaultLineWidth": 80,
    "[git-commit]": {
        "editor.rulers": [73],
        "justify.defaultLineWidth": 72,
    },
    "[plaintext]": {
        "justify.defaultLineWidth": 100,
    },
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft