Format astro and svelte files in vscode #27173
Replies: 3 comments 2 replies
-
|
You need to have {
"unstable": [
"fmt-sql"
]
}then you'll need to specify this in your |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for the answer. I've configured vscode and deno as described, but somehow it still doesn't work for me. Formatting SQL, Svelte or Astro with deno results in these popups. |
Beta Was this translation helpful? Give feedback.
-
|
You could also selectively choose which formatter you want per extension. Here is an example: https://github.com/KataLean/template-deno-astro/blob/main/.vscode/settings.json |
Beta Was this translation helpful? Give feedback.


Uh oh!
There was an error while loading. Please reload this page.
-
How can I configure vscode to format astro and svelte files with deno?
Currently I'm using the cli
deno fmt --unstable-components src/, but having vscode autoformatting would be more ergonomic.Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions