Skip to content

Instantly share code, notes, and snippets.

@aq1018
Last active December 12, 2022 22:57
Show Gist options
  • Save aq1018/89b26864e96305a80821d6aa506394dd to your computer and use it in GitHub Desktop.
Save aq1018/89b26864e96305a80821d6aa506394dd to your computer and use it in GitHub Desktop.
VSCode Config Preset for DevOps repository
root = true
# Unix-style newlines with a newline ending every file
[*]
end_of_line = lf
insert_final_newline = true
[*.tf]
charset = utf-8
indent_style = space
indent_size = 2
[Makefile]
indent_style = tab
indent_size = 2
{
"words": [
],
"enableFiletypes": [
"ruby",
"sql",
"terraform",
"terraform-vars"
]
}
{
"recommendations": [
"hashicorp.terraform",
"matheusq94.tfs",
"streetsidesoftware.code-spell-checker",
"editorconfig.editorconfig",
"eamodio.gitlens"
]
}
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"cSpell.ignorePaths": [
".git",
".terraform",
".vscode"
],
"cSpell.language": "en,en-US"
}
@aq1018
Copy link
Author

aq1018 commented Dec 9, 2022

This VSCode Workspace Preset contains the following plugins and configurations:

  • HashiCorp Terraform - Official Terraform Plugin, many features, see link for more details.
  • Terraform Format On Save - Focus on meaningful work, let the computer do the formatting.
  • Code Spell Checker - Highlights misspelling and suggest words.
  • EditorConfig - Standardize project specific formatting such as space vs tabs, tab sizes, etc. Supports many many editors.
  • GitLens - Lots of useful git related features, such as inline blame, etc.

To use these vscode workspace configs, simply run the following command in your project directory:

curl \
  --create-dirs \
  -O https://gist.githubusercontent.com/aq1018/89b26864e96305a80821d6aa506394dd/raw/extensions.json \
  -O https://gist.githubusercontent.com/aq1018/89b26864e96305a80821d6aa506394dd/raw/settings.json \
  --output-dir .vscode

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment