Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 52b56b8

Browse files
bergmeisterTravisEz13
authored andcommitted
Add PowerShell VSCode style settings (PowerShell#5529)
1 parent c2b8dba commit 52b56b8

File tree

1 file changed

+16
-1
lines changed

1 file changed

+16
-1
lines changed

.vscode/settings.json

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,20 @@
1818

1919
"[powershell]": {
2020
"files.trimTrailingWhitespace": true
21-
}
21+
},
22+
23+
// Sets the codeformatting options to follow the given indent style in a way that is compatible with PowerShell syntax. For more information about the brace styles please refer to https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/81.
24+
"powershell.codeFormatting.preset": "OTBS",
25+
26+
// Adds a space between a keyword and its associated scriptblock expression.
27+
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,
28+
29+
// Adds a space between a keyword (if, elseif, while, switch, etc) and its associated conditional expression.
30+
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
31+
32+
// Adds spaces before and after an operator ('=', '+', '-', etc.).
33+
"powershell.codeFormatting.whitespaceAroundOperator": true,
34+
35+
// Adds a space after a separator (',' and ';').
36+
"powershell.codeFormatting.whitespaceAfterSeparator": true
2237
}

0 commit comments

Comments
 (0)