# OpenTofu

[OpenTofu](https://opentofu.org/) is a fork of [Terraform](terraform.html) that is open-source, community-driven, and managed by the Linux Foundation.

IntelliJ IDEA provides coding assistance for OpenTofu files, including syntax highlighting, completion, and inspections. It also has dedicated run configurations for OpenTofu that are basically the same as for Terraform, but they use the `tofu` command.

![Terraform run configuration](https://resources.jetbrains.com.cn/help/img/idea/2026.2/opentofu_run_configuration.png)

Procedure: Specify the OpenTofu executable path

To run OpenTofu commands from the IDE using run configurations, you need to have OpenTofu installed on your machine.

1. Press `Ctrl+Alt+S` (Windows), `⌘ Comma` (macOS), `⌘ Comma` (IntelliJ IDEA Classic (macOS)), `⌘ Comma` (macOS System Shortcuts), `Ctrl+Alt+S` (XWin), `Ctrl+Alt+S` (GNOME), `Ctrl+Alt+S` (KDE), `Ctrl+Alt+S` (Emacs), `Ctrl+Alt+S` (Sublime Text), `⌘ Comma` (Sublime Text (macOS)), `Ctrl+Alt+S` (NetBeans), `Ctrl+Alt+S` (Visual Studio), `⌘ Comma` (Visual Studio (macOS)), `Ctrl+Alt+S` (Eclipse), `⌘ Comma` (Eclipse (macOS)) to open settings and then select `Tools | Terraform Tools`.

2. In most cases, IntelliJ IDEA detects the path to the OpenTofu executable automatically. If the IDE does not detect the version and path to the executable, click Detect and Test.

If OpenTofu is not installed on your machine, click Install.

![Terraform Tools settings](https://resources.jetbrains.com.cn/help/img/idea/2026.2/terraform_tools_settings.png)

3. If necessary, you can specify the path to OpenTofu manually in the OpenTofu executable path field.

