There are two famous beautify code plugins for Front-end developers in Visual Studio Code. So, I'd like to compare what plugin is better to use for me.
The plugins are
As you can see, Prettier is more popular than Beautify and Prettier supports
more languages than Beautify.
- Prettier
- Install count: 8,628,031
- language support:
- JavaScript · TypeScript · Flow · JSX · JSON
- CSS · SCSS · Less
- HTML · Vue · Angular
- GraphQL · Markdown · YAML
- Beautify
- Install count: 5,510,943
- language support:
- javascript, JSON, CSS, Sass, and HTML
Prettier has more strict options users should use while Beautify let users do
more free way. But I'd like to use Prettier for now because I don't
need free style and Prettier supports more languages. (I use Javascript,
TypeScript, JSON, CSS, HTML, JSX, Markdown, YAML)
Let's see how Prettier works.
1. Install Prettier plugin in Visual Studio Extensions
2. With this messy html code.
Don’t waste your time formatting your code. It takes time that can be better
spent writing more code.
Comments
Post a Comment