Skip to content

Commit

Permalink
chore: .vscode (#869)
Browse files Browse the repository at this point in the history
Adds Visual Code configurations:
- `settings.json`
- `extensions.json`

Signed-off-by: Ryan Johnson <[email protected]>
  • Loading branch information
tenthirtyam committed Mar 29, 2024
1 parent e97b969 commit 72c5369
Show file tree
Hide file tree
Showing 2 changed files with 74 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"recommendations": [
"davidanson.vscode-markdownlint", // Markdown Lint
"eamodio.gitlens", // GitLens
"esbenp.prettier-vscode", // Prettier
"hashicorp.hcl", // HCL
"hashicorp.terraform", // Terraform
"marvhen.reflow-markdown", // Reflow Markdown
"ms-vscode.powershell", // PowerShell
"redhat.ansible", // Ansible
"trunk.io", // Trunk
"vscode.json-language-features" // JSON
]
}
60 changes: 60 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
// Editor settings
"editor.bracketPairColorization.enabled": true,
"editor.bracketPairColorization.independentColorPoolPerBracketType": true,
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSaveMode": "modificationsIfAvailable",
"editor.guides.bracketPairs": true,
"files.insertFinalNewline": true,
"files.trimTrailingWhitespace": true,

// File watcher settings
"files.watcherExclude": {
"**/.DS_Store": true,
"**/.site/**": true,
"**/.trunk/**": true
},

// PowerShell settings
"powershell.analyzeOpenDocumentsOnly": true,
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationAfterEveryPipeline",
"powershell.codeFormatting.preset": "OTBS",
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,
"powershell.codeFormatting.whitespaceBetweenParameters": true,
"powershell.integratedConsole.suppressStartupBanner": true,
"powershell.scriptAnalysis.enable": true,

// Extension settings
"extensions.ignoreRecommendations": false,

// Reflow Markdown settings
"reflowMarkdown.preferredLineLength": 100,
"reflowMarkdown.wrapLongLinks": "wrap",

// Language-specific settings
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.trimAutoWhitespace": true
},
"[md]": {
"editor.defaultFormatter": "DavidAnson.vscode-markdownlint",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.trimAutoWhitespace": true,
"editor.wordWrap": "bounded",
"editor.wordWrapColumn": 100,
"editor.rulers": [100]
},
"[powershell]": {
"editor.defaultFormatter": "ms-vscode.powershell",
"editor.formatOnPaste": true,
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.trimAutoWhitespace": true,
"editor.wordWrap": "off"
}
}

0 comments on commit 72c5369

Please sign in to comment.