I'm trying to integrate Prettier in Visual Studio Code.
I've installed the Prettier VsCode plugin.
In the instructions it says to set the following VSCode setting:
"editor.defaultFormatter": "esbenp.prettier-vscode",
However, when I do this Visual Studio gives the message: "Unknown configuration setting".
And whenever I try to format the Javascript files it does not use prettier. I've uninstalled all other extensions just to be sure that nothing was interfering with the prettier extension.
Prettier does work correctly if I execute it with the command line:
npx prettier --write .
Does anyone know how this can be resolved?