VS Code command to configure Biome, .vscode/settings.json
#230
Replies: 3 comments 4 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.
-
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.
-
@colinhacks I completely agree; there should be clearer guidance or a command to assist users with setup. When I first started using Biome, I encountered significant confusion. Despite configuring everything in my settings correctly, I couldn't get it to work as expected. It took a while to realize that simply setting "[typescriptreact]": {
"editor.defaultFormatter": "prettier"
}, I believe this could be a stumbling block for many users trying out Biome for the first time. Improving clarity around this could greatly enhance the onboarding experience and help avoid potential frustrations. |
Beta Was this translation helpful? Give feedback.
-
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