4ever-clojure icon indicating copy to clipboard operation
4ever-clojure copied to clipboard

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

Open migraine-user opened this issue 1 year ago • 2 comments

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.

migraine-user avatar Jun 28 '24 16:06 migraine-user

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/

borkdude avatar Jun 28 '24 17:06 borkdude

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?

migraine-user avatar Jun 28 '24 18:06 migraine-user

Fixed in #95

oxalorg avatar Sep 27 '24 12:09 oxalorg