title: Why doesn't Prettier format code in VS Code? (with "esbenp.prettier-vscode" set as default and "formatOnSave: true")
body: <p>After reading and applying the suggestions on</p>
  <p><a href="https://stackoverflow.com/questions/29973357/how-do-you-format-code-in-visual-studio-code-vscode">How do you format code in Visual Studio Code (VSCode)</a></p>
  <p>and</p>
  <p><a href="https://stackoverflow.com/questions/52586965/why-does-prettier-does-not-format-code-in-vs-code">Why does Prettier does not format code in VS Code?</a></p>
  <p>I still wasn't able to format the code on VS Code when I press <strong>Shift + Alt + F</strong>. Here's what I've tried so far:</p>
  <p><a href="https://i.stack.imgur.com/CA7s0.png" rel="nofollow noreferrer">Screenshot 1</a></p>
  <p><a href="https://i.stack.imgur.com/9EjfA.png" rel="nofollow noreferrer">Screenshot 2</a></p>
  <p>What else should I try to make it work as expected?</p>
  <p>UPDATE: Here's the screenshot of the HTML code I'm trying to format. I've circled some of the elements that are not being formatted.</p>
  <p><a href="https://i.stack.imgur.com/somsj.png" rel="nofollow noreferrer">Screenshot 3</a></p>
  <p>UPDATE 2:
  Here's also the output message I get from the <strong>(!) Prettier</strong> link at the bottom right of the toolbar after pressing <strong>Shift + Alt + F</strong>:</p>
  <p>[&quot;INFO&quot; - 21:23:59] Formatting c:\Users\Home\OneDrive\Programming\Colt Udemy Course\chickens.html
  [&quot;INFO&quot; - 21:23:59] Using ignore file (if present) at c:\Users\Home\OneDrive\Programming\Colt Udemy Course.prettierignore
  [&quot;INFO&quot; - 21:23:59] File Info:
  {
  &quot;ignored&quot;: false,
  &quot;inferredParser&quot;: &quot;html&quot;
  }
  [&quot;INFO&quot; - 21:23:59] No local configuration (i.e. .prettierrc or .editorconfig) detected, falling back to VS Code configuration
  [&quot;INFO&quot; - 21:23:59] Prettier Options:
  {
  &quot;arrowParens&quot;: true,
  &quot;bracketSpacing&quot;: true,
  &quot;endOfLine&quot;: &quot;lf&quot;,
  &quot;htmlWhitespaceSensitivity&quot;: &quot;css&quot;,
  &quot;insertPragma&quot;: false,
  &quot;jsxBracketSameLine&quot;: false,
  &quot;jsxSingleQuote&quot;: false,
  &quot;printWidth&quot;: 120,
  &quot;proseWrap&quot;: &quot;preserve&quot;,
  &quot;quoteProps&quot;: &quot;as-needed&quot;,
  &quot;requirePragma&quot;: false,
  &quot;semi&quot;: true,
  &quot;singleQuote&quot;: true,
  &quot;tabWidth&quot;: 4,
  &quot;trailingComma&quot;: &quot;none&quot;,
  &quot;useTabs&quot;: true,
  &quot;vueIndentScriptAndStyle&quot;: false,
  &quot;filepath&quot;: &quot;c:\Users\Home\OneDrive\Programming\Colt Udemy Course\chickens.html&quot;,
  &quot;parser&quot;: &quot;html&quot;
  }
  [&quot;ERROR&quot; - 21:23:59] Error formatting document.
  [&quot;ERROR&quot; - 21:23:59] Invalid arrowParens value. Expected &quot;always&quot; or &quot;avoid&quot;, but received true.
  Error: Invalid arrowParens value. Expected &quot;always&quot; or &quot;avoid&quot;, but received true.
  at Normalizer._applyNormalization (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:8419:59)
  at applyNormalization (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:8368:48)
  at Normalizer.normalize (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:8374:7)
  at normalizeOptions (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:10903:33)
  at Object.normalizeApiOptions (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:11036:10)
  at normalize$1 (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:13718:28)
  at format (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:15111:46)
  at c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:57542:12
  at Object.format (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\node_modules\prettier\index.js:57562:12)
  at t.default. (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\dist\extension.js:1:16946)
  at Generator.next ()
  at s (c:\Users\Home.vscode\extensions\esbenp.prettier-vscode-6.3.1\dist\extension.js:1:9119)
  [&quot;INFO&quot; - 21:23:59] Formatting completed in 38.575899ms.</p>