You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
So a PR could be fairly straightforward to just add a new entry to the enum with the appropriate settings. Changing the switch to an exhausive pattern matching would also help catch any net-new issues.
Prerequisites
Summary
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:
else
on a new line PSScriptAnalyzer#2045Proposed Design
No response
The text was updated successfully, but these errors were encountered: