Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add global default format options #1152

Open
lukeed opened this issue Aug 26, 2024 · 0 comments
Open

Add global default format options #1152

lukeed opened this issue Aug 26, 2024 · 0 comments

Comments

@lukeed
Copy link

lukeed commented Aug 26, 2024

Is your feature request related to a problem? Please describe.

I can configure this extension to be my global TS/JS/etc formatter; eg

// global user vscode settings
"[typescript]": {
  "editor.formatOnSave": true,
  "editor.defaultFormatter": "denoland.vscode-deno",
},

With this, Deno will format everything, even without the presence of a deno.jsonc? file in the project (#780)

However, because there is no config file, when the extension runs deno fmt all its defaults are applied.
I know I can add a config file, but I'm looking to have vscode global defaults across all projects/scripts... until the project carries its own formatting configuration.

Describe the solution you'd like

The vscode extension to accept a fmt configuration block, that only applies when there is no other Deno configuration found.

This could be a raw JSON blob, or individual settings like what Prettier does.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant