# Visual Studio Code
BackPrettier
Setup Prettier:
- Go to Extensions and download Prettier plugin
- Create a
.prettierrc.js
file and add custom rules
module.exports = {
trailingComma: "es5",
tabWidth: 4,
semi: false,
singleQuote: true,
};
- Go to
code>preferences>settings
orcommand + ,
- Set the
Default Formatter
to Prettier - Check
Format On Save