When I try to format a Julia document using Option-Shift-F in VS Code I get the following message:
The Julia package “JuliaFormatter” must be installed to format code. Installation will take some time.
I have JuliaFormatter installed and I can format the document from within the REPL. This works:
julia> using JuliaFormatter
julia> JuliaFormatter.format("src/FILENAME.jl")
I don’t have any issues with the “Format Document” command in VS Code. It just works, and the JuliaFormatter.jl package is not even installed on my active project environment, nor on the default Julia environment.

Are you sure you are using the latest version of VS Code and the Julia extension? On Win11 on my side, it’s VS Code v1.141.0, Julia extension v.1.250.1 (the pre-release) and Julia v1.13.2.
Did you install the command line tool:
Not sure if it is needed, but worth a try.
I’m on a Mac with VS Code 1.142.0 with extensions Julia Language Support 1.249.2 and Julia Formatter 1.3.6.
I’m running Julia 1.13.2 with JuliaFormatter 2.14.0 installed.
I added this, but no luck. Thanks for the idea though!
Try again without the JuliaFormatter extension; formatting is built-in already.
That worked! Go figure. I uninstalled the JuliaFormatter extension from VS Code and now its fine. THANK YOU!