Skip to content
| Marketplace
Sign in
Visual Studio Code>Linters>tflint-vscodeNew to Visual Studio Code? Get it now.
tflint-vscode

tflint-vscode

NandovdK

|
3 installs
| (0) | Free
Adds TFLint support to VS Code by running TFLint, parsing its results, and displaying diagnostics for Terraform files.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TFLint VSCode Extension (Experimental)

⚠️ Experimental! This is a proof-of-concept VS Code extension for linting Terraform files using TFLint. It is not production-ready and the behaviour might change. Use at your own risk. This extension is only tested on MacOS & Windows with WSL2.

Note! This extension is currently not shipped with a TFLint bin. Please make sure TFLint is installed in your $PATH, or optionally configured in vscode settings.

Features

  • Runs TFLint on Terraform files (.tf) in your workspace.
  • Displays linting diagnostics directly in VS Code.

Usage

Once installed in Visual Studio Code, TFLint will automatically execute on project startup (when the project contains terraform files). And when you save a terraform file.

Settings

You can configure tflint-vscode with custom, optional settings in the .vscode/settings.json file:

{
    "tflint-vscode.configFile": ".tflint.hcl",
    "tflint-vscode.tfLintBinPath": "/path/to/tflint/bin",
    "tflint-vscode.fixOnSave": false
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft