ellie-app/ellie

How to format the Elm code when working in ellie?

Closed this issue · 2 comments

Viir commented

I have a question to ellie users:
How do you format your Elm code in ellie? Is there a function somewhere to have it formatted directly in ellie?
Or do you copy&paste to perform the formatting with another editor?

I did not find a tool to do the formatting directly in ellie. Also, I did not find information about this in the readme and the issues list on github

Thank you in advance for sharing your experience.

tbash commented

There is a button on the top right of the Elm editor's header. Maybe this could be made more obvious, perhaps having the text "FORMAT" would be better instead of or beside the icon?

Screen Shot 2019-04-12 at 4 19 31 PM

Viir commented

There is a button on the top right of the Elm editor's header.

Nice. This solved my problem 👍

Maybe this could be made more obvious, perhaps having the text "FORMAT" would be better instead of or beside the icon?

In my case, having the text Format there would have made it easier to find this button. Also, having the text in the button enables finding it with text search in chrome (Chrome text search does not seem to pick up the 'Format' text contained in the buttons title property)

I remember that I was using other buttons (for example the ones on the left, way larger) to see if I can find some kind of guide or a list of keyboard commands.