You can use the following settings when implementing your resources (The example is with VS Code):
{
"powershell.codeFormatting.openBraceOnSameLine": true,
"powershell.codeFormatting.whitespaceBeforeOpenParen": true,
"powershell.codeFormatting.whitespaceAroundOperator": true,
"powershell.codeFormatting.whitespaceAfterSeparator": true,
"powershell.codeFormatting.newLineAfterCloseBrace": true,
"editor.tabSize": 4,
"editor.insertSpaces": true,
"editor.detectIndentation": false,
"files.trimTrailingWhitespace": true
}
VS Code formatting file is available in the .vscode folder (settings.json File).