This extension automatically sets up Prettier formatting for JavaScript, HTML, Vue, and other file types in a Visual Studio Code project.
- Automatically creates a
.prettierrc
file with predefined formatting rules. - Updates the
.vscode/settings.json
to enable format on save and set Prettier as the default formatter for various file types.
- Install the extension.
- Open your project in Visual Studio Code.
- Run the command
Set Auto Formatting
from the Command Palette (Ctrl+Shift+P
orCmd+Shift+P
on macOS). - The extension will configure Prettier and update your VS Code settings accordingly.
- Visual Studio Code 1.84.0 or higher.
- Prettier extension for Visual Studio Code (
esbenp.prettier-vscode
).
This extension contributes the following settings:
editor.formatOnSave
: Enables format on save.- Prettier configuration settings in
.prettierrc
.
No known issues at this time.
Initial release of Set Auto Formatting
- Command to set up auto formatting for JavaScript, HTML, Vue, etc.
- Automatic creation and updating of
.prettierrc
and.vscode/settings.json
.
Enjoy!