Auto expand on paste sensitive to spaces
Posted: Mon Sep 21, 2020 9:01 pm
Product: PowerShell Studio 2020 (64 Bit)
Build: v5.7.181
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19041.0
The following where-object will not expand during a paste, due to the space between ? and the left open brace
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ? { $_ })
however...
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ?{ $_ })
does expand to
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | Where-Object{ $_ })
Build: v5.7.181
OS: Windows 10 Pro (64 Bit)
Build: v10.0.19041.0
The following where-object will not expand during a paste, due to the space between ? and the left open brace
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ? { $_ })
however...
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | ?{ $_ })
does expand to
foreach ($Line in @($Stats.$Type.$ServerPrefix.$Server) | Where-Object{ $_ })