|
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: |
Answered by
denis256
Jan 30, 2024
Replies: 2 comments 4 replies
|
Hi, Configuration in |
3 replies
Answer selected by
sarkis
|
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: |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi,
yes, now
terragrunt hclfmtformats all files even before visual code save file, in my projects I use workaround scriptformat.shwhich save stdin to a temporary file, run formatting on it and read it back:Configuration in
settings.json: