Skip to content

Instantly share code, notes, and snippets.

@p00j4
Last active June 14, 2022 14:20
Show Gist options
  • Save p00j4/90d7cc040729909ede8ae5ea03100268 to your computer and use it in GitHub Desktop.
Save p00j4/90d7cc040729909ede8ae5ea03100268 to your computer and use it in GitHub Desktop.
Auto Code formatting for Powershell using VS Code settings
{
"window.zoomLevel": 1,
"powershell.codeFolding.enable": true,
"powershell.codeFormatting.addWhitespaceAroundPipe": true,
"powershell.codeFormatting.autoCorrectAliases": false,
"powershell.codeFormatting.useCorrectCasing": true,
"powershell.codeFormatting.whitespaceInsideBrace": true,
"powershell.codeFormatting.useConstantStrings": true,
"powershell.codeFormatting.openBraceOnSameLine": false,
"powershell.scriptAnalysis.enable": true,
"powershell.pester.codeLens": true,
"powershell.integratedConsole.focusConsoleOnExecute": false,
"editor.formatOnPaste": true,
"editor.formatOnType": true,
"editor.formatOnSave": true,
"editor.defaultFormatter": "ms-vscode.powershell",
//"terminal.integrated.shell.osx": "/usr/local/bin/powershell",
//"powershell.codeFormatting.alignPropertyValuePairs": true,
"[powershell]": {
"editor.renderWhitespace": "all",
"editor.renderControlCharacters": true,
"files.trimTrailingWhitespace": true,
"files.encoding": "utf8bom",
"files.autoGuessEncoding": true,
"editor.autoClosingQuotes": "never" # Ideally should remove this and let it correct the qoutes as well
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment