Quantcast
Viewing all articles
Browse latest Browse all 311

Wish List and Feature Requests • Change Automatic Formatting of Colons For Ternary Expressions

This is one of those things that isn't really a big deal but I'm hoping that, for that reason, it's one you guys might be willing to address. Whenever the PowerShell Studio editor's automatic formatting is turned on, it will remove spaces preceding a colon. This can break ternary expressions, particularly if the value preceding the colon is a variable (e.g., it formats

Code:

$foo = $bar ? $bar : $baz;
as

Code:

$foo = $bar ? $bar: $baz;

Statistics: Posted by jvanlaan — Sat Mar 23, 2024 8:40 am — Replies 0 — Views 38



Viewing all articles
Browse latest Browse all 311

Trending Articles