SurroundSelection Option ?

Features wanted...
Post Reply
GreetingsFromPoland
Posts: 225
Joined: 29 Sep 2022 14:20
Location: Win10 @125%

SurroundSelection Option ?

Post by GreetingsFromPoland »

hi! when coding in NPP, VSCodium, PHPStorm, etc., one feature i use all the time is something called "SurroundSelection". it allows to you surround your selection with whatever you type, e.g. single quote, double quotes, parenthesis, brackets, etc.

i was using inline rename to take LaRoy Texas 2023 to LaRoy Texas (2023) and thought it would be nice if i could double-click on 2023 (which i can, it selects the word), but then press ( and it would wrap it like this (2023).

right now i start the inline rename, use the arrow keys to scoot the cursor before the word, press ( then scoot to the end of the word and press ), etc.

if added, certain character would have their match added, so typing ( would wrap () and [ would wrap [], " would simply be " " and ' would be ' '.

it's something i do hundreds of times a day in my IDE, thought it would be neat to have an option in XY for the same.

admin
Site Admin
Posts: 60635
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: SurroundSelection Option ?

Post by admin »

Interesting, here is an animated illustration of it: https://devblogs.microsoft.com/visualst ... xperiment/

Not immediately planned, but maybe later...

Post Reply