Better support for $() in PowerShell Studio

Post feature requests, product enhancement ideas, and other product-specific suggestions here. Do not post bug reports.
Forum rules
Do not post any licensing information in this forum.
This topic is 11 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked
User avatar
jasnic02
Posts: 7
Last visit: Tue Feb 21, 2017 10:20 am

Better support for $() in PowerShell Studio

Post by jasnic02 »

Consider the following snippet: $ScriptDirectory = $( if ($HostInvocation -ne $null) { Split-Path $HostInvocation.MyCommand.Path } else { Split-Path $script:MyInvocation.MyCommand.Path }) Smart indent hates this as it doesn't treat the '$(' like an open brace is treated. And, auto-complete doesn't recognize '$(' as valid either. Can support for this be added?
jasnic022012-08-24 18:03:28
User avatar
davidc
Posts: 5913
Last visit: Mon Jul 08, 2019 8:55 am
Been upvoted: 2 times

Better support for $() in PowerShell Studio

Post by davidc »

I will add it to the wish list. David
David
SAPIEN Technologies, Inc.
This topic is 11 years and 7 months old and has exceeded the time allowed for comments. Please begin a new topic or use the search feature to find a similar but newer topic.
Locked