Skip to content

Alt+Shift+F Code Formatter #852

Open
@thebells1111

Description

@thebells1111

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/

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions