Closed mroavi closed 1 year ago
Looks great! Never used JuliaFormattter
, can you comment a bit on how to run the formatter?
JuliaFormatter.jl is the formatter used by LanguageServer.jl. This means that you can use it from VsCode (as shown here) or from Neovim using its LSP client. You can also use it standalone like this:
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)
# Formats all files in the package directory of a `Module`
julia> format(FooPackage)
see the docs for more details.
Adds a
.JuliaFormatter.toml
file to define the format style. Formats all files using this style.