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

Alt+Shift+F Code Formatter #852

Open
thebells1111 opened this issue Oct 30, 2020 · 0 comments
Open

Alt+Shift+F Code Formatter #852

thebells1111 opened this issue Oct 30, 2020 · 0 comments

Comments

@thebells1111
Copy link

It would be sweet if there was a way to format the code using Prettier or something similar by pressing Alt+Shift+F.
As of now, my code in the REPL can get pretty gnarly.

I started working on something using prettier/standalone, but it's far from production ready.
Maybe people who are smarter than me want to take a crack at it.
https://github.com/thebells1111/svelte-prettier-browser-plugin-demo

And here's the demo deployed:
It's a little slow to load, maybe because prettier/standalone is so large. Probably needs to be changed to a webworker or something.
https://5f9c73ded4709a39fed50575--frosty-meninsky-8c72bd.netlify.app/

@Rich-Harris Rich-Harris transferred this issue from sveltejs/svelte-repl Dec 16, 2021
@benmccann benmccann transferred this issue from sveltejs/sites Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants