Any good options for auto-formatting F# code?

44 views
Skip to first unread message

Ded

unread,
May 5, 2017, 5:36:54 PM5/5/17
to F# Discussions
Google and github were not much help. Ideally something like https://github.com/avh4/elm-format?

Thanks

Warren Young

unread,
May 8, 2017, 10:04:37 AM5/8/17
to fsharp-o...@googlegroups.com
On May 5, 2017, at 3:36 PM, Ded <des...@dsouzaville.com> wrote:
>
> Google and github were not much help. Ideally something like https://github.com/avh4/elm-format?

I get why Go has such a thing, but I do not get why you’d want such a thing for a language like Elm or F#. If it compiles, it’s probably well-formatted.

That is, unless you’ve working with a developer with pathological code formatting practices. And if that’s the case, you’ve got a people problem, not a technical problem.

Isaac Abraham

unread,
May 8, 2017, 10:17:14 AM5/8/17
to fsharp-o...@googlegroups.com
You do have FSLint as well as Fantomas - both integrated into VS Power Tools and also can run as command line tools.

The problem with the formatting thing (in my experience) is that it's difficult to get really consistent formatting all the time. Sometimes you'll want to go "outside the lines" on a case-by-case basis.
--
--
To post, send email to fsharp-o...@googlegroups.com
To unsubscribe, send email to
fsharp-opensou...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/fsharp-opensource
---
You received this message because you are subscribed to the Google Groups "F# Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email to fsharp-opensou...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages