I am struggling with the integration of the JuliaFormatter in VS code. Suppose you have the following code in a file:
x = rand(10, 10) sum(x, dims=1)
Now, I have activated the auto format on save option in VS code. If I however run
using JuliaFormatter format(".")
in my REPL, the file is reformatted to
x = rand(10, 10) sum(x; dims = 1)
This is exactly how I want it and how I set up the options for JuliaFormatter in the file
.JuliaFormatter.toml which is in the root directory of my system. If I copy the file into the folder where the
test.jl is, it works.
What do I need to do to let VS code use the same configuration even if it isn’t in the same folder?
Thanks a lot for your help!