Skip to content

Commit

Permalink
You probably don't need to install Prettier (withastro#2845)
Browse files Browse the repository at this point in the history
Co-authored-by: Chris Swithinbank <[email protected]>
Co-authored-by: Yan Thomas <[email protected]>
Co-authored-by: WintrCodes <[email protected]>
Co-authored-by: Sarah Rainsberger <[email protected]>
  • Loading branch information
5 people authored Mar 15, 2023
1 parent e54dec5 commit ad74e8d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/content/docs/en/editor-setup.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,9 @@ See [the project's User Guide](https://ota-meshi.github.io/eslint-plugin-astro/u

### Prettier

[Prettier](https://prettier.io/) is a popular formatter for JavaScript, HTML, CSS and more. To add support for formatting `.astro` files, use [the official Astro Prettier plugin](https://github.com/withastro/prettier-plugin-astro).
[Prettier](https://prettier.io/) is a popular formatter for JavaScript, HTML, CSS, and more. If you're using the [Astro VS Code Extension](https://marketplace.visualstudio.com/items?itemName=astro-build.astro-vscode) or [the Astro language server within another editor](#other-code-editors), code formatting with Prettier is included.

To add support for formatting `.astro` files outside of the editor (e.g. CLI) or inside editors that don't support our editor tooling, install [the official Astro Prettier plugin](https://github.com/withastro/prettier-plugin-astro).

To get started, first install Prettier and the plugin:

Expand Down

0 comments on commit ad74e8d

Please sign in to comment.