https://github.com/domluna/JuliaFormatter.jl
An opinionated code formatter for Julia. Plot twist - the opinion is your own.
https://github.com/domluna/JuliaFormatter.jl
cst formatter formatting julia
Last synced: 3 months ago
JSON representation
An opinionated code formatter for Julia. Plot twist - the opinion is your own.
- Host: GitHub
- URL: https://github.com/domluna/JuliaFormatter.jl
- Owner: domluna
- License: mit
- Created: 2019-03-10T22:36:14.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2025-04-05T04:56:53.000Z (3 months ago)
- Last Synced: 2025-04-12T15:56:25.240Z (3 months ago)
- Topics: cst, formatter, formatting, julia
- Language: Julia
- Homepage: https://domluna.github.io/JuliaFormatter.jl/dev/
- Size: 12.5 MB
- Stars: 598
- Watchers: 5
- Forks: 72
- Open Issues: 214
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# JuliaFormatter.jl
[](https://domluna.github.io/JuliaFormatter.jl/stable/)
[](https://domluna.github.io/JuliaFormatter.jl/dev/)
Width-sensitive formatter for Julia code. Inspired by gofmt, refmt, and black.

## Installation
```julia
]add JuliaFormatter
```## Quick Start
```julia
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](https://domluna.github.io/JuliaFormatter.jl/stable/) for further description of the formatter and its options.
[Use With GitHub Actions](https://github.com/julia-actions/julia-format)
## Editor Plugins
For integration with other editors:
- [VSCode](https://github.com/singularitti/vscode-julia-formatter/)
- [Emacs](https://codeberg.org/FelipeLema/julia-formatter.el)
- [Vim](https://github.com/kdheepak/JuliaFormatter.vim)
- [Atom (deprecated)](https://github.com/JunoLab/Atom.jl)