wsdjeg / JuliaFormatter.jl

An opinionated code formatter for Julia. Plot twist - the opinion is your own.

Home Page:https://domluna.github.io/JuliaFormatter.jl/dev/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

JuliaFormatter.jl

Documenter: stable Documenter: dev Build Status

Width-sensitive formatter for Julia code. Inspired by gofmt, refmt, and black.

Screencast

Installation

]add JuliaFormatter

Quick Start

julia> using JuliaFormatter

# Recursively formats all Julia files in the current directory
julia> format(".")

# Formats an individual file
julia> format_file("foo.jl")

# Formats a string (contents of a Julia file)
julia> format_text(str)

Check out the docs for further description of the formatter and its options.

Use With Github Actions

Editor Plugins

For integration with other editors:

About

An opinionated code formatter for Julia. Plot twist - the opinion is your own.

https://domluna.github.io/JuliaFormatter.jl/dev/

License:MIT License


Languages

Language:Julia 100.0%