Resources/Editor/VSCode/settings.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
{
    // When enabled, will trim trailing whitespace when you save a file.
    "files.trimTrailingWhitespace": true,
    // specifies the location of the explicity ScriptAnalyzer settings file
    "powershell.scriptAnalysis.settingsPath": "PSScriptAnalyzerSettings.psd1",
    // specifies the PowerShell coding style used in this project (https://github.com/PoshCode/PowerShellPracticeAndStyle/issues/81)
<%
    If ($PLASTER_PARAM_CodingStyle -eq 'Stroustrup') {
        @'
    "powershell.codeFormatting.preset":"Stroustrup"
'@
    }
    elseif ($PLASTER_PARAM_CodingStyle -eq 'OTBS') {
        @'
    "powershell.codeFormatting.preset":"OTBS"
'@
    }
    elseif ($PLASTER_PARAM_CodingStyle -eq 'Allman') {
        @'
    "powershell.codeFormatting.preset":"Allman"
'@
    }
    else{
        @'
    "powershell.codeFormatting.preset":"Custom"
'@
    }
%>
}