Is there any tool to automatically arrange F # code

Visual Studio does not offer automatic formatting for F #, is there another editor that I can use to automate this?

I would like it to put reasonable spaces between arithmetic operators (a+b) goes into (a + b) or assignment operators =

+6
source share
2 answers

I was developing source code formatting for F # . The source can be found on Github .

Currently, the VS extension has been released in the Visual Studio Gallery . Integration with other IDEs and editors should be possible while the API and command line are already available.

The VS extension can handle situations that you described quite well with the format selection function .

+3
source

Indentation in the general code is supported in FSharpMode in Emacs: Link to the download site But this will not help you to perform automatic separation of operator white spaces, only indents.

Maybe write a simple formatter based on Tomas Petriceks code for syntax highlighting?

Link to FSharp.Formatting

+2
source

Source: https://habr.com/ru/post/924871/


All Articles