Skip to content

Commit ac8bbd9

Browse files
Configure formatting and extensions for vscode (#8136)
1 parent 1ac680f commit ac8bbd9

File tree

3 files changed

+33
-1
lines changed

3 files changed

+33
-1
lines changed

.gitignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -268,7 +268,10 @@ paket-files/
268268
*.sln.iml
269269

270270
# VSCode settings
271-
.vscode/settings.json
271+
.vscode/**
272+
!.vscode/extensions.json
273+
!.vscode/settings.json
274+
!.vscode/tasks.json
272275

273276
# CodeRush
274277
.cr/

.vscode/extensions.json

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"recommendations": [
3+
"streetsidesoftware.code-spell-checker",
4+
"hashicorp.hcl",
5+
"davidanson.vscode-markdownlint",
6+
"ms-vscode.powershell",
7+
"timonwong.shellcheck"
8+
]
9+
}

.vscode/settings.json

+20
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
3+
"powershell.codeFormatting.alignPropertyValuePairs": true,
4+
"powershell.codeFormatting.autoCorrectAliases": true,
5+
"powershell.codeFormatting.newLineAfterCloseBrace": true,
6+
"powershell.codeFormatting.newLineAfterOpenBrace": true,
7+
"powershell.codeFormatting.openBraceOnSameLine": true,
8+
"powershell.codeFormatting.pipelineIndentationStyle": "IncreaseIndentationForFirstPipeline",
9+
"powershell.codeFormatting.preset": "Stroustrup",
10+
"powershell.codeFormatting.trimWhitespaceAroundPipe": true,
11+
"powershell.codeFormatting.whitespaceAfterSeparator": true,
12+
"powershell.codeFormatting.whitespaceAroundOperator": true,
13+
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
14+
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
15+
"powershell.codeFormatting.whitespaceBetweenParameters": true,
16+
"powershell.codeFormatting.whitespaceInsideBrace": true,
17+
"shellcheck.exclude": [
18+
"SC1091"
19+
]
20+
}

0 commit comments

Comments
 (0)