Prerequisites
Summary
Edit 2026-03-07:
A lot of people including me like OTBS with else on a new line.
To achieve this with vscode-powershell one have to use "powershell.codeFormatting.preset": "Custom" and set all formatting rules one by one.
It'd be nice with the ability to override any setting set by a preset. If this is not possible or feasible maybe a new preset can be added to PSScriptAnalyzer:
Proposed Design
No response
Prerequisites
Summary
Edit 2026-03-07:
A lot of people including me like OTBS with
elseon a new line.To achieve this with
vscode-powershellone have to use"powershell.codeFormatting.preset": "Custom"and set all formatting rules one by one.It'd be nice with the ability to override any setting set by a preset. If this is not possible or feasible maybe a new preset can be added to PSScriptAnalyzer:
elseon a new line PSScriptAnalyzer#2045Proposed Design
No response