domluna / 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

Add way to disable formatter for a repo

IanButterworth opened this issue · comments

The majority of codebases I work with use JuliaFormatter (thanks!) so I have VSCode set up to format on save.

However some repos don't chose to use it, and I'm not aware of a way to opt out in VSCode without using a different key combo to save etc.

It'd be nice to be able to set a .JuliaFormatter.toml up that disables formatting for the entire repo.

Setting

ignore = [""]

or "/" or "*" didn't seem to work

ignore = [""] and calling format(".") does work for me. It seems this is a vscode issue.