Width-sensitive formatter for Julia code. Inspired by gofmt, refmt, black, and prettier. Built with CSTParser. Sane defaults out of the box with options to customize. Supports YAS, Blue and SciML style guides. JuliaFormatter.toml configuration file to store options. JuliaFormatter exports format, format_file, format_text, and format_md. format_md has the same API as format_text but differ in that format_md expects the text content to be a Markdown document. See format_text docstring for formatting options at the text level and format_file docstring for formatting options at the file level. JuliaFormatter should work on any valid Julia and Markdown files. If JuliaFormatter cannot parse the code for any reason, it will throw an error pointing to the line that could not be parsed. If running format on multiple files, you may want to set verbose = true to print information about which file is being formatted.

Features

  • JuliaFormatter exports format, format_file, format_text, and format_md
  • Format code docstrings with the same options used for the code source
  • Markdown is formatted with CommonMark alongside Julia code
  • Integration with other editors
  • Inspired by gofmt, refmt, and black
  • JuliaFormatter should work on any valid Julia and Markdown files

Project Samples

Project Activity

See All Activity >

Categories

Code Formatters

License

MIT License

Follow JuliaFormatter.jl

JuliaFormatter.jl Web Site

Other Useful Business Software
PRTG Catches Network Issues Before They Cause Downtime Icon
PRTG Catches Network Issues Before They Cause Downtime

Threshold-based alerts flag problems early, so your team can act before users notice, not after.

Reactive troubleshooting usually means hearing about a problem from frustrated users, not your monitoring tool. PRTG sets threshold-based alerts across devices, servers and applications, notifying your team by email, SMS or push the moment a metric crosses a set limit. That means catching a failing disk or overloaded server before it becomes an outage and getting time back from firefighting. Start a free trial and set your first alerts today.
Download 30-Day Trial
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of JuliaFormatter.jl!

Additional Project Details

Operating Systems

Windows

Programming Language

Julia

Related Categories

Julia Code Formatters

Registered

2023-04-25