Add PowerShell VSCode style settings#5529
Conversation
|
When I last touched that file I considered adding these settings but I noticed that the PowerShell script in this repo is not terribly consistent style-wise. I like the idea of it being more consistent but this PR would make it easier for folks using VSCode to mix semantic changes with style changes. I wonder if it would be better to just take the "styling" hit once and make all the script files conform to this style setup? |
|
One could apply the styling to the files since VSCode has the |
|
I'm fine with the proposed setting changes. We can apply the style universally after GA. |
Add the following VS Code settings to have a more consistent
PowerShellstyle already at the PR stage. It is mainly based on the K&R/OTBS style, which basically means braces are on the same line and that else, catch, and other keywords are "cuddled" (e.g.} else {)Personally I'd prefer rather the Stroustrup style where there is no "cuddling" but I have seen that the
K&R/OTBSis used more often in the codebase.