VS Code Deno formatter doesn't read deno.jsonc
I have a deno setup with this config in the root of my project:
{
"fmt": {
"include": ["/*.ts", "/.tsx"],
"exclude": ["**/.d.ts"],
"lineWidth": 120
}
}
And it formats correctly to 120 max width with deno fmt, but when I use format on save in VS Code with Deno set as my default editor, it uses the default configuration with max width 80. Why is this?
6 Replies
GitHub
Issues · denoland/deno
A modern runtime for JavaScript and TypeScript. Contribute to denoland/deno development by creating an account on GitHub.
Sure
GitHub
VS Code doesn't use the
deno fmt
configuration from deno.jsonc
...Version: Deno 2.1.9 I'm trying to use the Deno formatter in VS Code, but it's not using the configuration I've set up. I do have Deno set as my default formatter, and I have format on s...
@marvinh. any chance this could be looked at? The default configuration is reformatting all of my files, causing frustrating Git diffs.
Hey @this_chord. Did you try with these settings in VSCode?
.vscode/settings.json
:
I'll give it a try