Last active
June 14, 2022 14:20
-
-
Save p00j4/90d7cc040729909ede8ae5ea03100268 to your computer and use it in GitHub Desktop.
Auto Code formatting for Powershell using VS Code settings
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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