The Respository contains a sample Vite typescript app that is fomatted with prettier
-
Install Prettier plugin
-
Update Editor Preferences
Press CTRL+SHIFT+P or CMD+SHIFT+P type in
open user settings json
update the settings file
{ "editor.defaultFormatter": "esbenp.prettier-vscode" }
Aditional Information can be found at https://prettier.io/docs/en/editors.html
- Install prettier package
npm install --save-dev --save-exact prettier
- create configuration file for prettier
echo {}> .prettierrc.json
- Configuration files can be updated based on user's formatting preferences