Installing IDE
In this lesson we'll learn to install JetBrains IntelliJ Community Edition IDE to write and run Terraform projects on your system.
We'll cover the following
Install JetBrains IntelliJ Community Edition#
This last step is completely optional but highly recommended. JetBrains have an awesome
IDE called IntelliJ and what’s more, they provide a free community edition. The great thing about
using the IntelliJ IDE is that you can install a plugin that gives you code completion, refactoring, and
navigation for Terraform files (.tf
files). This will make your life much easier when you are editing
Terraform code.
Setting up IntelliJ Community Edition#
To setup IntelliJ Community Edition for Terraform:
-
Navigate to the JetBrains IntelliJ download page
-
Click on the
Community Edition
download button -
Install it by running the download
-
Run IntelliJ and click on the
IntelliJ IDEA
Menu, selectPreferences
-
On the
Preferences
menu go toPlugins
-
In the
Plugins
search box typeHCL
, there should be a plugin forHashicorp Markup Language Support
, clickInstall
then clickApply
-
IntelliJ will now be configured to understand Terraform files
If you do not wish to use IntelliJ, that is fine. You will still be able to follow the examples.