Replies: 2 comments 5 replies
-
|
Managed to get to the bottom of my issue. For some reason "[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[javascriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},I would also recommend Monorepo Workspace extension. |
Beta Was this translation helpful? Give feedback.
5 replies
-
|
Using this now https://github.com/servrox/turbo-bun-tailwind-starter/blob/main/.vscode/settings.json |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm trying to format an edited file when saving in VSCode for the Basic example template.
If i run
pnpm run format, prettier does its magic against all files across all workspaces.My
.vscode/settings.jsonlooks like this:{ "eslint.packageManager": "pnpm", "eslint.workingDirectories": [ "apps", "packages" ], "editor.defaultFormatter": "esbenp.prettier-vscode", "prettier.printWidth": 100, "prettier.arrowParens": "avoid", "prettier.enable": true, "prettier.endOfLine": "lf", "prettier.jsxSingleQuote": false, "editor.formatOnSave": true, "editor.codeActionsOnSave": { "source.fixAll.eslint": true, "source.organizeImports": true }, }I get the feeling this is potentially an issue with prettier-vscode and I've raised an issue but wanted to create a discussion here, as I imagine I may not be the only person interested in tracking this issue.
Beta Was this translation helpful? Give feedback.
All reactions