D
Deno

help

How to get Deno to fmt on save with VSCode?

Eelekram1/28/2023
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" } Deno 1.3.0
IioB1/28/2023
1.3.0 or 1.30.0 it makes a big difference
Eelekram1/28/2023
Sorry 1.30.0 Latest
TTestersen™1/28/2023
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"
}
Eelekram1/28/2023
That last one was it. Thank you

Looking for more? Join the community!

Recommended Posts
Integrate Twin to Svelte+Vite+Deno as FreshIs there any way to integrate the use of Twind into the Stelte+Vite+Deno project as Fresh does? Thacan i render some pages as SPA and some as SSR in fresh?#fresh kanalına mesaj göndercan i render some pages as SPA and some as SSR in fresh? #fresh kanalına mesaj gönderHow can i return a base64 as file on Deno Deploy?Could someone give me an example for this?How to disable deno linter for whole project directory?I'm using deno with mixed project folders, some use Vue and shouldn't be linted by deno. How do i diHow can I get `npm` in the path for Deno.run()?I'm writing a script to automate a tedious npm task that I run frequently. When I use `Deno.run()` iUse Deno.run() to communicate with ArduinoHey I'm trying to communicate via USB serial with my Arduino. My goal is to have the result I get viBest place to host server side Deno AppI have a server side app I want to host in a specific region and I only want 1 instance of it runninNPM Import missing typesPlaying around with some deno code and testing a npm import, the original package has types (redaxioUpdate value by reference without duplicating the dataIm exploring the world of FFI, porting some C applications I have to TypeScript, with the help of Dehow to hash very large filesWe have deprecated the old std/hash code in favor of the crypto module, but I do not know what the sxstate - no types importedimport * as xstate from "https://deno.land/x/xstate@xstate@4.35.2/src/index.ts"; file is cached, yetexample of kysely running on deno deploy?Deno Deploy awesomely can connect to postgres directly from the edge https://deno.com/blog/deploy-poUpdating digest with web cryptoFor some context, I'm updating some code that was importing from `std/hash` (specifically `std/hash/What would be the best third party module implementing `deflate()`?Currently using `npm:pako` but I'd like to avoid npm specifiers (modules in general).Pass string to struct FFIQuick question about Struct-Value feature, what would be the best way to pass `*const u8` (or stringdeno blog without html sanitizationI want to be able to javascript Canvas API things in my blog - surely this is possible?Killing subprocess not workingAnyone know what I'm doing wrong when trying to kill a process? I have a process start another proc