question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Terraform fmt on save

See original GitHub issue

It would be great to have the plugin run terraform fmt on saving of a file.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:12
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

17reactions
matschaffercommented, Apr 12, 2017

For the time being I’ve worked around this with the file watchers plugin and the following config. Only been using it an hour or so, but seems to work okay so far.

screen shot 2017-04-12 at 9 25 00

4reactions
VladRassokhincommented, Nov 17, 2017

FYI 0.6.9 with ‘FileWatcher’ template just released.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Fmt on save not working with vscode 1.11.1 #16
Since the last update of vscode, the fmt on save doesn't work anymore. I have update to 0.0.7 and added "terraform.formatOnSave": true to...
Read more >
HashiCorp Terraform - Visual Studio Marketplace
This extension utilizes terraform fmt to rewrite an open document to a canonical format and style. This command applies a subset of the ......
Read more >
VSCode plugin very slow at terraform fmt on save
The issue I'm having with the VSCode Terraform plugin is that when it saves a file it's taking nearly 5 seconds to terraform...
Read more >
How to configure alignment and indentation of terraform ...
The autoformatter on that plugin (ctrl+shift+i) will run the terraform fmt command. This is the opinionated, zero option autoformatter that ...
Read more >
Command: fmt | Terraform
The terraform fmt command is used to rewrite Terraform configuration files to a canonical format and style. This command applies a subset of...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found