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