prettier vscode code example

Example 1: beautify command vscode

Mac Shift + Option + F

Example 2: prittier download ubuntu

npm install --save-dev --save-exact prettier

Example 3: prettier on save vscode

{
  "folders": [],
  "settings": {},
  "editor.formatOnSave": true,
}

Example 4: format code in vs code

On Windows Shift + Alt + F.
On Mac Shift + Option + F.

Example 5: prettier not working vscode

-> open visual studio code
-> go to view
-> open command palette
-> search for "format document with"
-> set prettier to default

Example 6: prettier on save vscode

// Set the default"editor.formatOnSave": false,// Enable per-language"[javascript]": {    "editor.formatOnSave": true}