elekram
elekram2y ago

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
elekram
elekram2y ago
Deno 1.3.0
ioB
ioB2y ago
1.3.0 or 1.30.0 it makes a big difference
elekram
elekram2y ago
Sorry 1.30.0 Latest
Testersen™
Testersen™2y ago
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.
"[typescript]": {
"editor.defaultFormatter": "example"
}
"[typescript]": {
"editor.defaultFormatter": "example"
}
elekram
elekram2y ago
That last one was it. Thank you