NOTE: Others might not prefer this type of style, but it works well for me.
{
"editor.minimap.enabled": true,
"workbench.iconTheme": "vscode-icons",
"powershell.scriptAnalysis.enable": true,
"terminal.integrated.shell.osx": "/usr/local/bin/powershell",
"powershell.integratedConsole.focusConsoleOnExecute": false,
"powershell.codeFormatting.newLineAfterOpenBrace": false,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.ignoreOneLineBlock": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"powershell.codeFormatting.alignPropertyValuePairs": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.openBraceOnSameLine": false,
"editor.formatOnSave": true,
"editor.formatOnType": true
}
As you type and when you save PowerShell files, they are auto formatted. Also the Script Analyst is enabled.