---
name: "ctags-lang-terraform"
section: "7"
platform: "linux"
package: "ctags"
version: "1:6.2.1-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/ctags-lang-terraform"
---

# ctags-lang-terraform(7)

Random notes about tagging Terraform files with Universal Ctags

## Name

ctags-lang-terraform - Random notes about tagging Terraform files with Universal Ctags

## SYNOPSIS

```
ctags ... --languages=+Terraform ...
ctags ... --language-force=Terraform ...
ctags ... --map-Terraform=+.tf ...
ctags ... --extras=+{reference} --languages=+TerraformVariables ...
ctags ... --extras=+{reference} --language-force=TerraformVariables ...
ctags ... --extras=+{reference} --map-Terraform=+.tfvars ...
```

## DESCRIPTION

This man page gathers random notes about tagging Terraform files.

## TIPS

### Extracting variables assigned in Variable definitions

Specify **--extras=+{reference}** and **--languages=+TerraformVariables** to extract variables assigned in variables definitions (*\*.tfvars*). The TerraformVariables parser extracts variables in *\*.tfvars* files with **variable** kind with **assigned** role of **Terraform** language.

## VERSIONS

### Change since "0.0"

- •

  New kind **local**

## SEE ALSO

[ctags(1)](/ctags/1.md), Configuration Syntax \<https://developer.hashicorp.com/terraform/language/syntax/configuration\> (\<https://developer.hashicorp.com/terraform/language/syntax/configuration\>), Variable Definitions (.tfvars) Files \<https://developer.hashicorp.com/terraform/language/values/variables#variable-definitions-tfvars-files\> (\<https://developer.hashicorp.com/terraform/language/values/variables#variable-definitions-tfvars-files\>)
