Terraform Format on Save TFS is an extension that will format your terraform code when you save your .tf files. How it works It's simply runs terraform fmt <path-to-your-current-file> before saving your .tf or .tfvars files. Requirements Terraform installed.