Home > Article > Web Front-end > ## Why Does \'Format Document\' Not Work With Prettier in .vue Files in Visual Studio Code?
Troubleshooting Prettier Formatting Issues in Visual Studio Code
When using ESlint and Prettier in a Nuxt application and switching to Visual Studio Code, formatting .vue files with the "Format Document" command may not work. To resolve this, the following steps can be taken:
Set Prettier as the Default Formatter:
Alternative Configuring Method:
If the above method does not work, try the following:
Alternatively, the "Format Document with..." command (Ctrl Shift I) can also be customized to use Prettier by following the same steps mentioned above.
The above is the detailed content of ## Why Does \'Format Document\' Not Work With Prettier in .vue Files in Visual Studio Code?. For more information, please follow other related articles on the PHP Chinese website!