Format of generated config file conflicts with what `deno fmt` prefers
See original GitHub issueOn initializing, the plugin generates a config JSON file with 4-space indent, but it conflicts with deno fmt
since it prefers 2-space indent. It is a kind of annoying that running deno fmt
formats .vscode/settings.json
just after it’s generated.
It would be better if we could make the plugin generate a JSON file whose format deno fmt
likes.
However, from my quick browse, unfortunately it seems like the VSCode Extension API doesn’t provide a way of configuring the indent size of config files. https://code.visualstudio.com/api/references/vscode-api#WorkspaceConfiguration
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (7 by maintainers)
Top Results From Across the Web
Code Formatter - deno fmt
Deno ships with a built-in code formatter that will auto-format the following files:
Read more >Support additional deno fmt options · Issue #660 - GitHub
deno fmt has some nice options which are not possible to set with vscode_deno plugin in settings.json . For most wanted are:
Read more >Formatting code with config files in Deno | The JS runtimes
Learn how to use config files to control code formatting with Deno.
Read more >Utilities Error Messages - Software AG Documentation
The value of item FORMAT is either invalid or missing in the configuration file, which is assigned via the item AUDIT_FILE.
Read more >Deno 1.14 - Hacker News
I tried out Deno last weekend for a fun little hack project (syncing a local Markdown file to a formatted Google Doc), and...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I suspect some people would want to
deno fmt
the file, right?Moved the issue to deno then. 🤷