Quantcast
Channel: SAPIEN Forums
Viewing all articles
Browse latest Browse all 311

PowerShell Studio • Quote toggle behaviour

$
0
0
Product, version and build:232
Operating system: win10 22h2
PowerShell version(s):5.1

I recently typed this in:

Code:

$sqlrows = Get-SQLRows 'select [AccountGuid],[MemberOfGuid] from [MAD].[Scripts].[GroupMemberships] where status <> 'removed''
and realised I made a mistake in setting the beginning and end as single quotes as my SQL query had single quotes in it.
So I positioned my cursor before the first single quote and pressed CTLR-ALT' to toggle from single to double quotes.
However it didnt change the beginning and end single quotes to double. It changed the first two singles to double (the one before the string 'removed')
This is obviously by design but I would suggest that the quote toggle should always change the first and last quotes in any line by default?

Statistics: Posted by Lembasts — Wed Dec 06, 2023 3:00 pm — Replies 1 — Views 7



Viewing all articles
Browse latest Browse all 311

Trending Articles