In my Nuxt application where ESlint and Prettier are installed and enabled, I switched to Visual Studio Code editor.
When I open a .vue file and pre
This is not a problem with Prettier itself, but prettier-vscode
, the VSCode extension. According to its documentation, Vue formatting is disabled by default:
prettier.disableLanguages (default: ["vue"])
A list of languages IDs to disable this extension on. Restart required. Note: Disabling a language enabled in a parent folder will prevent formatting instead of letting any other formatter to run
In this case, to enable you should set "prettier.disableLanguages": []
. And since this is an extension configuration, you should do it in VSCode settings file, not .prettierrc
.