.vscode/settings.json

{
    // shamelessly pulled from https://raw.githubusercontent.com/sqlcollaborative/dbatools/development/.vscode/settings.json
    // formatting style this project adheres to: https://en.wikipedia.org/wiki/Indentation_style#Variant:_1TBS_(OTBS)
    "powershell.codeFormatting.preset": "OTBS",
    // editor settings for formatting standards on this project
    "editor.tabSize": 4,
    "editor.detectIndentation": false,
    "editor.insertSpaces": true,
    "editor.formatOnSave": true,
    // editor settings that will auto add the closing quote or curly brace
    "editor.autoClosingBrackets": "always",
    "editor.autoClosingQuotes": "always",
    "editor.autoSurround": "languageDefined",
    // now your double clicks on a variable names include the dollar sign '$'
    // https://twitter.com/TylerLeonhardt/status/1102749805233737729
    "[powershell]": {
        "editor.wordSeparators": "`~!@#%^&*()-=+[{]}\\|;:'\",.<>/?"
    },
    "powershell.codeFormatting.addWhitespaceAroundPipe": true
}