There are several IDE plugins available for working with Terraform.
These plugins can help you with tasks like syntax highlighting, autocompletion, error checking, and formatting.
Visual Studio Code (VSCode):
Plugin: Terraform (by Mikael Olenfalk)
Plugin: HashiCorp Terraform (by HashiCorp)
JetBrains IntelliJ IDEA / PyCharm / WebStorm / PhpStorm / RubyMine:
Plugin: HashiCorp Terraform / HCL language support (by JetBrains)
Plugin: Terraform Syntax (by Aleksandr Dorokhov)
Plugin: SublimeLinter-contrib-terraform-check (by Jon Berg)
Plugin: language-terraform (by Mikael Olenfalk)
Plugin: atom-terraform (by David Heward)