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

[Feature Request] Automatically detect default formatter in project settings, and use that #245083

Closed
hamirmahal opened this issue Mar 30, 2025 · 1 comment
Assignees
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)

Comments

@hamirmahal
Copy link
Contributor

Image

I've been having issues using VSCode with multiple different TypeScript formatters across several different codebases.

I've had to update @lang:typescriptreact @id:editor.defaultFormatter about 3 times in the past 3 or so days.

One codebase uses Prettier ESlint, so I manually update the default formatter for that codebase so that VSCode works well with it, but another uses biome, so I update the default formatter again, and yet another codebase uses just Pretter, without eslint, so I update the default formatter a 3rd time.

Is there a way to make VSCode automatically use the project formatter as the default? If not, I'd like to request that we add that as a feature.

I tried setting Editor: Default Formatter to None at the language level, and the User level, with no success.

I guess I could manually create a .vscode/settings.json file for every repository I work in, but that's kind of noisy.

@jrieken
Copy link
Member

jrieken commented Mar 31, 2025

I guess I could manually create a .vscode/settings.json file for every repository I work in, but that's kind of noisy.

That's how you need to do it, ideally combined with workspace recommended extensions. We don't support workspace-scoped configuration outside of the workspace

@jrieken jrieken closed this as completed Mar 31, 2025
@jrieken jrieken added the *question Issue represents a question, should be posted to StackOverflow (VS Code) label Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
*question Issue represents a question, should be posted to StackOverflow (VS Code)
Projects
None yet
Development

No branches or pull requests

2 participants