title: VSCode Prettier not formatting PHP
body: <p>So I've set up vscode with Prettier, but it will not format .php files.
  .html files are working fine with Prettier. So when I have a .php with HTML code then it will be formatted differently, because I am using Beautify as last option.</p>
  <p>How can I make Prettier automatically format .php files and the html code in .php the same as .html files?</p>
  <p>settings.json</p>
  <pre><code>{
    &quot;sync.autoDownload&quot;: true,
    &quot;sync.autoUpload&quot;: true,
    &quot;sync.forceDownload&quot;: true,
    &quot;sync.forceUpload&quot;: true,
    &quot;workbench.iconTheme&quot;: &quot;vscode-icons&quot;,
    &quot;sync.gist&quot;: &quot;715bf022af486e449cae9313183b9a56&quot;,
    &quot;sync.quietSync&quot;: true,
    &quot;typescript.updateImportsOnFileMove.enabled&quot;: &quot;always&quot;,
    &quot;window.zoomLevel&quot;: 0,
    &quot;vetur.format.defaultFormatter.js&quot;: &quot;vscode-typescript&quot;,
    &quot;vetur.format.defaultFormatter.ts&quot;: &quot;vscode-typescript&quot;,
    &quot;eslint.codeActionsOnSave.mode&quot;: &quot;all&quot;,
    &quot;workbench.colorTheme&quot;: &quot;Atom One Dark&quot;,
    &quot;beautify.language&quot;: {
      &quot;html&quot;: [&quot;php&quot;, &quot;blade&quot;]
    },
    // These are all my auto-save configs
    &quot;editor.formatOnSave&quot;: true,
    // turn it off for JS and JSX, we will do this via eslint
    &quot;[javascript]&quot;: {
      &quot;editor.formatOnSave&quot;: false
    },
    &quot;[javascriptreact]&quot;: {
      &quot;editor.formatOnSave&quot;: false
    },
    // tell the ESLint plugin to run on save
    &quot;editor.codeActionsOnSave&quot;: {
      &quot;source.fixAll&quot;: true
    },
    // Optional BUT IMPORTANT: If you have the prettier extension enabled for other languages like CSS and HTML, turn it off for JS since we are doing it through Eslint already
    &quot;prettier.disableLanguages&quot;: [&quot;javascript&quot;, &quot;javascriptreact&quot;],
    &quot;php.validate.executablePath&quot;: &quot;C:\\xampp\\php\\php.exe&quot;
  }
  </code></pre>
  <p>.eslintrc.json</p>
  <pre><code>{
    &quot;extends&quot;: [&quot;airbnb&quot;, &quot;prettier&quot;, &quot;prettier/react&quot;],
    &quot;parser&quot;: &quot;babel-eslint&quot;,
    &quot;parserOptions&quot;: {
      &quot;ecmaVersion&quot;: 2020,
      // Can I remove these now?
      &quot;ecmaFeatures&quot;: {
        &quot;impliedStrict&quot;: true,
        &quot;classes&quot;: true
      }
    },
    &quot;env&quot;: {
      &quot;browser&quot;: true,
      &quot;node&quot;: true,
      &quot;jquery&quot;: true,
      &quot;jest&quot;: true
    },
    &quot;rules&quot;: {
      &quot;no-debugger&quot;: 0,
      &quot;no-alert&quot;: 0,
      &quot;no-await-in-loop&quot;: 0,
      &quot;no-return-assign&quot;: [&quot;error&quot;, &quot;except-parens&quot;],
      &quot;no-restricted-syntax&quot;: [
        2,
        &quot;ForInStatement&quot;,
        &quot;LabeledStatement&quot;,
        &quot;WithStatement&quot;
      ],
      &quot;no-unused-vars&quot;: [
        1,
        {
          &quot;ignoreSiblings&quot;: true,
          &quot;argsIgnorePattern&quot;: &quot;res|next|^err&quot;
        }
      ],
      &quot;prefer-const&quot;: [
        &quot;error&quot;,
        {
          &quot;destructuring&quot;: &quot;all&quot;
        }
      ],
      &quot;arrow-body-style&quot;: [2, &quot;as-needed&quot;],
      &quot;no-unused-expressions&quot;: [
        2,
        {
          &quot;allowTaggedTemplates&quot;: true
        }
      ],
      &quot;no-param-reassign&quot;: [
        2,
        {
          &quot;props&quot;: false
        }
      ],
      &quot;no-console&quot;: 0,
      &quot;import/prefer-default-export&quot;: 0,
      &quot;import&quot;: 0,
      &quot;func-names&quot;: 0,
      &quot;space-before-function-paren&quot;: 0,
      &quot;comma-dangle&quot;: 0,
      &quot;max-len&quot;: 0,
      &quot;import/extensions&quot;: 0,
      &quot;no-underscore-dangle&quot;: 0,
      &quot;consistent-return&quot;: 0,
      &quot;react/display-name&quot;: 1,
      &quot;react/no-array-index-key&quot;: 0,
      &quot;react/react-in-jsx-scope&quot;: 0,
      &quot;react/prefer-stateless-function&quot;: 0,
      &quot;react/forbid-prop-types&quot;: 0,
      &quot;react/no-unescaped-entities&quot;: 0,
      &quot;jsx-a11y/accessible-emoji&quot;: 0,
      &quot;react/require-default-props&quot;: 0,
      &quot;react/jsx-filename-extension&quot;: [
        1,
        {
          &quot;extensions&quot;: [&quot;.js&quot;, &quot;.jsx&quot;]
        }
      ],
      &quot;radix&quot;: 0,
      &quot;no-shadow&quot;: [
        2,
        {
          &quot;hoist&quot;: &quot;all&quot;,
          &quot;allow&quot;: [&quot;resolve&quot;, &quot;reject&quot;, &quot;done&quot;, &quot;next&quot;, &quot;err&quot;, &quot;error&quot;]
        }
      ],
      &quot;quotes&quot;: [
        2,
        &quot;single&quot;,
        {
          &quot;avoidEscape&quot;: true,
          &quot;allowTemplateLiterals&quot;: true
        }
      ],
      &quot;prettier/prettier&quot;: [
        &quot;error&quot;,
        {
          &quot;trailingComma&quot;: &quot;es5&quot;,
          &quot;singleQuote&quot;: true,
          &quot;printWidth&quot;: 80
        }
      ],
      &quot;jsx-a11y/href-no-hash&quot;: &quot;off&quot;,
      &quot;jsx-a11y/anchor-is-valid&quot;: [
        &quot;warn&quot;,
        {
          &quot;aspects&quot;: [&quot;invalidHref&quot;]
        }
      ],
      &quot;react-hooks/rules-of-hooks&quot;: &quot;error&quot;,
      &quot;react-hooks/exhaustive-deps&quot;: &quot;warn&quot;
    },
    &quot;plugins&quot;: [&quot;html&quot;, &quot;prettier&quot;, &quot;react-hooks&quot;]
  }
  </code></pre>