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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start 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