All Projects → hashicorp → Vscode Terraform

hashicorp / Vscode Terraform

Licence: mpl-2.0
A Visual Studio Code extension for Hashicorp Terraform

Programming Languages

typescript
32286 projects

Projects that are alternatives of or similar to Vscode Terraform

Syntax Highlighter
Syntax Highlighter extension for Visual Studio Code (VSCode). Based on Tree-sitter.
Stars: ✭ 88 (-86.9%)
Mutual labels:  vscode, vscode-extension, syntax-highlighting
Vue Theme Vscode
+200.000 installs ⬇️ Theme for Visual Studio Code inspired by Vue.js, with support for more popular languages, trying to maintain a perfect harmony of colors.
Stars: ✭ 54 (-91.96%)
Mutual labels:  vscode, vscode-extension, syntax-highlighting
Shades Of Purple Vscode
🦄 Shades of Purple — A professional theme with hand-picked & bold shades of purple to go along with your VSCode. Reviewed by several designers and 75+ theme versions released to keep it updated. One of the top rated best VSCode themes on VS Code Marketplace. Download →
Stars: ✭ 486 (-27.68%)
Mutual labels:  vscode, vscode-extension, visual-studio
vscode-angular-html
Angular syntax highlighting for HTML templates
Stars: ✭ 35 (-94.79%)
Mutual labels:  syntax-highlighting, vscode, vscode-extension
Vscode
Connect to MongoDB and Atlas and directly from your VS Code environment, navigate your databases and collections, inspect your schema and use playgrounds to prototype queries and aggregations.
Stars: ✭ 161 (-76.04%)
Mutual labels:  terraform, vscode, vscode-extension
Processing Vscode
A Visual Studio Code extension for the programming language Processing
Stars: ✭ 141 (-79.02%)
Mutual labels:  vscode, vscode-extension, syntax-highlighting
Vscode Smarty
Smarty syntax highlight extension for Visual Studio Code
Stars: ✭ 10 (-98.51%)
Mutual labels:  vscode, vscode-extension, syntax-highlighting
Terraform.tmlanguage
Terraform (HCL) configuration file syntax highlighting for Sublime Text 2 and 3
Stars: ✭ 148 (-77.98%)
Mutual labels:  terraform, hcl, syntax-highlighting
Intellij Hcl
HCL language support for IntelliJ platform based IDEs
Stars: ✭ 207 (-69.2%)
Mutual labels:  terraform, hcl, syntax-highlighting
Awesome Vscode
🎨 A curated list of delightful VS Code packages and resources.
Stars: ✭ 19,659 (+2825.45%)
Mutual labels:  vscode, vscode-extension, visual-studio
Terraform Ecs
AWS ECS terraform module
Stars: ✭ 657 (-2.23%)
Mutual labels:  terraform, hcl
Vscode Live Sass Compiler
Compile Sass or Scss file to CSS at realtime with live browser reload feature.
Stars: ✭ 488 (-27.38%)
Mutual labels:  vscode, vscode-extension
Red Baron
Automate creating resilient, disposable, secure and agile infrastructure for Red Teams.
Stars: ✭ 662 (-1.49%)
Mutual labels:  terraform, hcl
K2tf
Kubernetes YAML to Terraform HCL converter
Stars: ✭ 477 (-29.02%)
Mutual labels:  terraform, hcl
Infrastructure As Code Talk
Sample code for the talk "Infrastructure-as-code: running microservices on AWS with Docker, ECS, and Terraform"
Stars: ✭ 520 (-22.62%)
Mutual labels:  terraform, hcl
Chat
Chat with your team while you collaborate over code using VS Live Share
Stars: ✭ 468 (-30.36%)
Mutual labels:  vscode, vscode-extension
Vscode Angular Snippets
Angular Snippets for VS Code
Stars: ✭ 530 (-21.13%)
Mutual labels:  vscode, vscode-extension
Evermonkey
Evernote Editing. Redefined. 关于 token 的问题请去 https://github.com/michalyao/evermonkey/issues/94 中查看!
Stars: ✭ 542 (-19.35%)
Mutual labels:  vscode, vscode-extension
Terragoat
TerraGoat is Bridgecrew's "Vulnerable by Design" Terraform repository. TerraGoat is a learning and training project that demonstrates how common configuration errors can find their way into production cloud environments.
Stars: ✭ 461 (-31.4%)
Mutual labels:  terraform, hcl
Bedrock
Automation for Production Kubernetes Clusters with a GitOps Workflow
Stars: ✭ 528 (-21.43%)
Mutual labels:  terraform, hcl

Terraform Visual Studio Code Extension

HashiCorp Terraform

The HashiCorp Terraform Visual Studio Code (VS Code) extension adds syntax highlighting and other editing features for Terraform files using the Terraform Language Server.

Features

  • Manages installation and updates of the Terraform Language Server (terraform-ls), exposing its features:
    • Completion of initialized providers: resource names, data source names, attribute names
    • Diagnostics to indicate HCL errors as you type
    • Initialize the configuration using "Terraform: init" from the command palette
    • Run terraform plan and terraform apply from the command palette
    • Validation diagnostics using "Terraform: validate" from the command palette or a validateOnSave setting
  • Includes syntax highlighting for .tf and .tfvars files -- including all syntax changes new to Terraform 0.12
  • Closes braces and quotes
  • Includes for_each and variable syntax shortcuts (fore, vare, varm)

Getting Started

IMPORTANT: After installing, you must perform a terraform init to provide terraform-ls with an up-to-date provider schemas. The language server will not work correctly without first completing this step!

  1. Install the extension from the Marketplace
  2. Reload VS Code after the installation (click the reload button next to the extension)
  3. Perform a terraform init to provide terraform-ls with an up-to-date provider schema
  4. Open your desired workspace and/or the root folder containing your Terraform files. Note: see Known Issues below about multi-folder workspaces
  5. Depending on your settings in VS Code, completion will start automatically (if not inside quotes/string literal, on certain trigger characters), or you can explicitly trigger completion via keyboard combination (Ctrl+Space on Windows, control+space on Mac).

Configuration

This extension offers several configuration options. To modify these, navigate to the extension view within VS Code, select the settings cog and choose Extension settings, or alternatively, modify the .vscode/settings.json file in the root of your working directory.

Telemetry

We use telemetry to send error reports to our team, so we can respond more effectively. If you want to disable this setting, add "telemetry.enableTelemetry": false to your settings.json and that will turn off all telemetry in VSCode. You can also monitor what's being sent in your logs.

Multiple Workspaces

If you have multiple root modules in your workspace, you can configure the language server settings to identify them. Edit this through the VSCode Settings UI or add a .vscode/settings.json file using the following template:

{
    "terraform-ls.rootModules": [
        "/module1",
        "/module2"
    ]
}

If you want to automatically search root modules in your workspace and exclude some folders, you can configure the language server settings to identify them.

{
    "terraform-ls.excludeRootModules": [
        "/module3",
        "/module4"
    ]
}

Formatting

To enable formatting, it is recommended that the following be added to the extension settings for the Terraform extension:

    "[terraform]": {
        "editor.formatOnSave": true
    }

Validation

An experimental validate-on-save option can be enabled with the following setting:

    "terraform-ls.experimentalFeatures": {
      "validateOnSave": true
    }

This will create diagnostics for any elements that fail validation. terraform validate can also be run using the setting in the command palette.

Release History

v2.0.0 is the first official release from HashiCorp, prior releases were by Mikael Olenfalk.

The 2.0.0 release integrates a new Language Server package from HashiCorp. The extension will install and upgrade terraform-ls to continue to add new functionality around code completion and formatting. See the terraform-ls CHANGELOG for details.

In addition, this new version brings the syntax highlighting up to date with all HCL2 features, as needed for Terraform 0.12 and above.

Configuration Changes Please note that in 2.x, the configuration differs from 1.4.0, if you are having issues with the Language Server starting, you can reset the configuration to the following:

{
  "terraform.languageServer": {
    "external": true,
    "args": [
      "serve"
    ]
  }
}

See the CHANGELOG for more information.

Terraform 0.11

If you are using a Terraform version prior to 0.12.0, you can install the pre-transfer version of this extension manually by following the instructions in the wiki.

Known Issues

  • Multi-folder workspaces are not yet supported. (info)
  • A number of different folder configurations (specifically when your root module is not a parent to any submodules) are not yet supported. (info)

User Group

We're starting a user group for the Terraform VS Code extension. This group offers opportunities to provide feedback, access pre-release versions, and help influence the direction of this project. Collaboration and updates will be via HashiCorp Discuss (discuss.hashicorp.com), along with occasional live events.

If you are interested, please complete and submit our participation form, and we will get back to you with an invite!

Credits

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].