VS Code command to configure Biome, .vscode/settings.json
#230
colinhacks
started this conversation in
General
Replies: 2 comments 3 replies
-
Hey @colinhacks, I appreciate you taking the time to write this, as it's valuable feedback. We've actually already had a similar suggestion to provide an "init" command and I'm definitely open to exploring it. |
Beta Was this translation helpful? Give feedback.
2 replies
-
another couple of options that could be added are:
this is great if you're still using prettier/eslint globally but want to incrementally adopt biome in new projects |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've had a lot of trouble migrating existing projects to Biome, and I have a suggestion for the extension to make the DX a little cleaner. It would be nice if there was a command in the command palette like "Biome: Initialize".
This would add a
.vscode/settings.json
andbiome.jsonc
if they doesn't exist. Then it would merge in the following settings:For context here are some of the pitfalls that have caused me trouble when trying to enable Biome, both in new projects and existing eslint/prettier projects.
settings.json
is currently empty or non-existent, settings "Configure Default Formatter" doesn't properly create it and set"editor.defaultFormatter"
..vscode/settings.json
at all. At times I've had to toggle the default formatter from Biome -> Prettier -> Biome to get VS Code to update this file. Other times that hasn't worked and I just update it manually. 🤷♂️settings.json
keys."editor.defaultFormatter"
. It doesn't work for me with just a top-level setting. I'm not sure why. Perhaps this only is necessary when Prettier is still set as the global default?.vscode
and others don't. So sometimes when I switch branches all my effort configuring Biome gets wiped away.All told, there's a lot of complexity, and I feel like I never get it right. It would be nice to have an all-encompassing "Init" command I could run or re-run and have everything reliably work.
Beta Was this translation helpful? Give feedback.
All reactions