-
Notifications
You must be signed in to change notification settings - Fork 54
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
Code formatting in .mongodb #122
Comments
As a workaround, you could use the Beautify extension. I know it's not the best solution but it gets the job done. |
Can you create a feature request in our feedback forum? |
You can also add this to your "files.associations": {
"*.mongodb": "javascript"
} |
@charlesonunze this actually breaks playgrounds as they will be identified as JS files and the extension won't add the playground-related features anymore. |
Shit, I actually did not think that was the issue when intellisense wasn't working. I guess it needs it's own formatted after all :( |
Prettier could be integrated too, although not in a straight way:
|
This actually works! Thanks! @Flamefork |
I am closing this issue, but we have a formatting enhancement request on the MongoDB forum that you can track: https://feedback.mongodb.com/forums/929236-mongodb-for-vs-code/suggestions/42380848-formatting-support-for-mongodb-playground-files And feel free to reach out if you have any further questions! |
this overrides section is not working when added to the global ~/.prettierrc |
Is there any way to configure / use a formatter / linter for .mongodb files?
This is my no1 feature that I miss in all mongodb GUI and would save me the countless times I try to run a query - just to get notified that something is not formatted right.
The text was updated successfully, but these errors were encountered: