Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[vscode,terraform/editor] Add notes about writing terraform codes
- Loading branch information
Showing
3 changed files
with
52 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
title: "エディタ" | ||
linkTitle: "エディタ" | ||
date: 2020-05-10T08:41:30+09:00 | ||
weight: 1100 | ||
--- | ||
|
||
各種エディタやIDEでTerraformを書くための設定など。 | ||
|
||
## IntelliJ IDEA | ||
|
||
See also [IntelliJ IDEA]({{< ref "/a/program/idea.md" >}}) | ||
|
||
### Plugins | ||
|
||
- [HashiCorp Terraform / HCL language support - IntelliJ IDEs | JetBrains](https://plugins.jetbrains.com/plugin/7808-hashicorp-terraform--hcl-language-support) | ||
- File Watcher ... ファイル保存時に `terraform fmt` を実行するため | ||
|
||
### 設定 | ||
|
||
- File Watcherによる `terraform fmt` を設定する | ||
|
||
## Visual Studio Code | ||
|
||
See also [Visual Studio Code]({{< ref "/a/program/vscode.md" >}}) | ||
|
||
参考: | ||
|
||
- [VSCodeでTerraformを書くときの設定(2019/11/07追記: HCL2対応) - Qiita](https://qiita.com/pypypyo14/items/5520f3defa55119f3a1a) | ||
|
||
### Extensions | ||
|
||
- [Terraform - Visual Studio Marketplace](https://marketplace.visualstudio.com/items?itemName=mauve.terraform) | ||
- 2020年5月、公式になった | ||
|
||
参考: | ||
|
||
- [Supporting the HashiCorp Terraform Extension for Visual Studio Code](https://www.hashicorp.com/blog/supporting-the-hashicorp-terraform-extension-for-visual-studio-code/) | ||
|
||
### 設定 | ||
|
||
- 自動フォーマット( `editor.formatOnSave` )をONにしておく -> `terraform fmt` が掛かるようになる |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters