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

Add a button for formatting code alongside "Run" and "Settings" #93

Closed
migraine-user opened this issue Jun 28, 2024 · 3 comments
Closed

Comments

@migraine-user
Copy link
Contributor

and perhaps a keyboard shortcut!
When I am going through a problem, it's hard to iterate on the browser while formatting it so I can mentally parse it. It would be nice to have a way to format the code that I was writing so far.
Maybe it would be possible to use cljfmt for this? I am still new to clojure, but I think I can try implementing this myself if that's alright.

@borkdude
Copy link
Collaborator

clojure-mode, which is the library used in this project also supports formatting.

You can see this at work in this playground, formatting happens when you hit tab:

https://squint-cljs.github.io/squint/

@migraine-user
Copy link
Contributor Author

Oh, there wouldn't be a need for a new library. Is formatting available on the website as it is now, or would that still need to be added with clojure-mode?

@oxalorg
Copy link
Owner

oxalorg commented Sep 27, 2024

Fixed in #95

@oxalorg oxalorg closed this as completed Sep 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants