Skip to content
This repository has been archived by the owner on Jan 30, 2021. It is now read-only.

rmtsrc/prettier-standard-format-modified-lines

Repository files navigation

DEPRECATED

This is now an intergrated feature since Visual Studio Code v1.49.

Prettier Standard - format modified lines

Prettier Standard - format modified lines. A Visual Studio Code formatter extension.

Features

Formats modified lines only via the experimental prettier-standard --lines flag or formats the selected text via prettier-standard.

Installation

Install through VS Code extensions. Search for Prettier Standard - format modified lines

Visual Studio Marketplace: Prettier Standard - format modified lines

Can also be installed in VS Code: Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter:
ext install sebflipper.prettier-standard-format-modified-lines

Extension Settings

To enable, add the follow to your editors or workspaces settings.json.

{
  "editor.formatOnSave": true,
  "[javascript]": {
    "editor.defaultFormatter": "sebflipper.prettier-standard-format-modified-lines"
  },
  "[javascriptreact]": {
    "editor.defaultFormatter": "sebflipper.prettier-standard-format-modified-lines"
  },
  "[typescript]": {
    "editor.defaultFormatter": "sebflipper.prettier-standard-format-modified-lines"
  },
  "[typescriptreact]": {
    "editor.defaultFormatter": "sebflipper.prettier-standard-format-modified-lines"
  },
  // If needed, add additional Prettier Standard supported languages here...
}

Known Issues

  • Only works on Mac or Linux.

Release Notes

See: CHANGELOG.md.