Sunday, May 2, 2021

How to install Prettier extension in Visual Studio Code?

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.


Follow the steps mentioned below to install the Prettier extension in your Visual Studio Code (VSCode).

Steps to install Prettier in VSCode


Now to validate if Prettier is working, open any file that it supports like HTML, JavaScript, CSS, etc. and look for it's name at bottom right corner of the VSCode.

Sign of Prettier extension is loaded


To avoid conflicts of beautifiers, disable or uninstall any other beautifier extensions that supports the same file formats.

No comments:

Post a Comment