Subexpression automation in strings
Posted: Sun Jun 04, 2017 3:20 pm
Greetings,
I am often copying and pasting object properties into strings.
So I might start with "User []" and then paste in the property which becomes "User [$textboxUser.Tag.Name]" but then I have to manually change this to "User [$($textboxUser.Tag.Name)]".
It would be nice to just highlight the variable and press a shortcut key to enclose the variable in a subexpression.
What would be even way cooler is detecting that an object with a property has been pasted in to a string and automatically do the following:
If the string is enclosed in single quotes, automatically change it to double quotes AND automatically apply the subexpression.
Cheers
David
I am often copying and pasting object properties into strings.
So I might start with "User []" and then paste in the property which becomes "User [$textboxUser.Tag.Name]" but then I have to manually change this to "User [$($textboxUser.Tag.Name)]".
It would be nice to just highlight the variable and press a shortcut key to enclose the variable in a subexpression.
What would be even way cooler is detecting that an object with a property has been pasted in to a string and automatically do the following:
If the string is enclosed in single quotes, automatically change it to double quotes AND automatically apply the subexpression.
Cheers
David