-
Is there a recommended way to get get formatting for terragrunt enabled on vscode? I am trying to use a custom formatter, but this seems to cause some odd issues where on file save, the contents of the file vs the editor are different. Here is the snippet from settings:
Error I get randomly when using this:
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi,
Configuration in
|
Beta Was this translation helpful? Give feedback.
-
For an alternative approach, I've been formatting files on save without any issue for 2+ years using this extension in conjunction with the following config in settings.json:
|
Beta Was this translation helpful? Give feedback.
Hi,
yes, now
terragrunt hclfmt
formats all files even before visual code save file, in my projects I use workaround scriptformat.sh
which save stdin to a temporary file, run formatting on it and read it back:Configuration in
settings.json
: