I’ve realized this hasn’t been posted on here, despite it being registered and used for several months.
JuliaFormatter.jl is a width-sensitive formatter for the Julia programming language.
It can format:
- Julia files
- Julia code in docstrings
- Julia code in markdown files
Besides styles there also several options which can be set including from the indentation and maximum margin. At the time of this writing there are 16 boolean options which means 65536 different formatting outputs for an input just by fiddling with these alone!
To keep of your options you can use a configuration file,
JuliaFormatter will automatically detect this file and override the default options.
Recently custom alignment detection has been introduced for several types of code expressions. I think this feature is awesome.
Lastly I’d like to thank @ZacLN for CSTParser.jl and everyone who’s contributed, whether it’s been a PR, bug report, or presenting an idea for a cool feature. This project wouldn’t have gotten to this stage without it!