set prettier as default formatter vscode code example
Example 1: format code in vs code
On Windows Shift + Alt + F.
On Mac Shift + Option + F.
Example 2: prettier config vscode
npm install --save-dev --save-exact prettier
Example 3: prettier format on save not working vscode
If you set prettier as default formater and formating on save doesnt work
-> format the file manualy using Shift+Alt+f