This package provides jsonnet language formatter. Visual Studio Code will automatically format the code on save, or you can manually invoke the format command.
It is set to use the Google internal config:
jsonnet fmt --indent 2 --max-blank-lines 2 --sort-imports --string-style s --comment-style s
Make sure jsonnet
is installed and exists in $PATH
.