# Integration of JuliaFormatter

**URL:** <https://discourse.julialang.org/t/integration-of-juliaformatter/94135>\
**Category:** VS Code\
**Created:** [February 6, 2023, 12:20pm UTC](https://discourse.julialang.org/t/integration-of-juliaformatter/94135 "2023-02-06T12:20:04Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![hildebrandecon](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hildebrandecon/32/46604_2.png) [@hildebrandecon](https://discourse.julialang.org/u/hildebrandecon)\
**Post date:** [February 6, 2023, 12:20pm UTC](https://discourse.julialang.org/t/integration-of-juliaformatter/94135/1 "2023-02-06T12:20:05Z")

</div>

Dear community,

I am struggling with the integration of the JuliaFormatter in VS code. Suppose you have the following code in a file:

```julia
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

```julia
using JuliaFormatter
format(".")

```

in my REPL, the file is reformatted to

```julia
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!

Best,  
Sebastian
