How to get Deno to fmt on save with VSCode?
I have a deno.json file with some fmt options which works if run fromt the command line but not when saving in VSCode.
The belowe settings are set
{
"deno.enable": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "denoland.vscode-deno"
}
5 Replies
Deno 1.3.0
1.3.0 or 1.30.0
it makes a big difference
Sorry 1.30.0
Latest
You might have to restart vscode for it to take effect, I have ran into this a couple of times.
Also note that if you have a defaultEditor target for a specific language, it will take precedence over your fallback.
That last one was it. Thank you