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
jasnic02
Posts: 5
Last visit: Mon Sep 03, 2012 9:36 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
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