Prettier is an opinionated code formatter. It enforces a consistent style by parsing your code and re-printing it with its own rules that take the maximum line length into account, wrapping code when necessary. To ensure that this extension is used over other extensions you may have installed, be sure to set it as the default formatter in your VS Code settings. This setting can be set for all languages or by a specific language. If you want to disable Prettier on a particular language you can either create a .prettierignore file or you can use VS Code's editor.defaultFormatter settings. Additionally, you can disable format on save for specific languages if you don't want them to be automatically formatted. This extension will use prettier from your project's local dependencies (recommended). When the prettier.resolveGlobalModules is set to true the extension can also attempt to resolve global modules.

Features

  • For JavaScript, TypeScript, Flow, JSX, and JSON
  • Install through VS Code extensions
  • This extension supports Prettier plugins
  • This extension will attempt to register the language and provide automatic code formatting
  • There are multiple options for configuring Prettier with this extension
  • You can use VS Code settings, prettier configuration files, or an .editorconfig file

Project Samples

Project Activity

See All Activity >

Categories

Code Formatters

License

MIT License

Follow Prettier Formatter for Visual Studio

Prettier Formatter for Visual Studio Web Site

Other Useful Business Software
AI-generated apps that pass security review Icon
AI-generated apps that pass security review

Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
Try Retool free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Prettier Formatter for Visual Studio!

Additional Project Details

Operating Systems

Windows

Programming Language

TypeScript

Related Categories

TypeScript Code Formatters

Registered

2022-01-12