Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Open Terraform DocsNew to Visual Studio Code? Get it now.
Open Terraform Docs

Open Terraform Docs

mi-wada

|
8 installs
| (1) | Free
Open Terraform Provider documentation in your browser.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

tfdoc

A VS Code extension to open Terraform Provider documentation in your browser.

tfdoc demo

Features

  • Open the documentation of the Terraform resource or data source at the cursor position.

Usage

  1. Place your cursor on a Terraform resource or data source
  2. Open the command palette (Cmd+Shift+P on Mac, Ctrl+Shift+P on Windows/Linux)
  3. Run the command "tfdoc: Open Terraform Provider Docs"

Alternatively, you can use the default keyboard shortcut Ctrl+; Ctrl+T (Mac: Cmd+; Cmd+T).

Customizing Keyboard Shortcut

If you prefer a different shortcut, you can customize it in your keybindings.json:

[
  {
    "key": "cmd+k cmd+d",
    "command": "tfdoc.openDocs",
    "when": "editorTextFocus && (editorLangId == terraform || editorLangId == hcl)"
  }
]

Requirements

  • Visual Studio Code 1.106.1 or later.

Install

code --install-extension mi-wada.tfdoc

Known Issues

  • When a resource or data source has multiple parameters with the same name, the extension cannot navigate to the correct parameter's documentation. Currently, it will navigate to the first occurrence of that parameter.
    • Example: https://registry.terraform.io/providers/hashicorp/aws/latest/docs/data-sources/instance#device_name-2
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft