Skip to content

Commit

Permalink
Add PowerShell VSCode style settings (PowerShell#5529)
Browse files Browse the repository at this point in the history
  • Loading branch information
bergmeister authored and daxian-dbw committed Nov 28, 2017
1 parent 2c4257e commit f5b9942
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,20 @@

"[powershell]": {
"files.trimTrailingWhitespace": true
}
},

// 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.
"powershell.codeFormatting.preset": "OTBS",

// Adds a space between a keyword and its associated scriptblock expression.
"powershell.codeFormatting.whitespaceBeforeOpenBrace": true,

// Adds a space between a keyword (if, elseif, while, switch, etc) and its associated conditional expression.
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,

// Adds spaces before and after an operator ('=', '+', '-', etc.).
"powershell.codeFormatting.whitespaceAroundOperator": true,

// Adds a space after a separator (',' and ';').
"powershell.codeFormatting.whitespaceAfterSeparator": true
}

0 comments on commit f5b9942

Please sign in to comment.