spyder icon indicating copy to clipboard operation
spyder copied to clipboard

Expand / Shrink selection

Open cjh9 opened this issue 5 years ago • 3 comments

Feature request

I didnt find any possibility to do expand/shrink selection. This is available in both pycharm and VScode, highly useful.

https://code.visualstudio.com/docs/editor/codebasics#_shrinkexpand-selection

Is there any plans to include it in spyder?

cjh9 avatar Sep 11 '20 10:09 cjh9

Hi @cjh9,

Thanks for the suggestion, can you please give us a more detailed use case of the feature you will like?

steff456 avatar Sep 15 '20 17:09 steff456

I think the screen capture clip in the link above explains very well what is the feature about. one command creates a selection of a logical element around the cursor (a word, content of a quote, content of a parenthesis), running the command more times expands the selection to increasingly bigger elements. Another command does the opposite and shrinks the selection back to smaller elements.

while editing code, we spend lots of time selecting logical elements to copy, delete or replace them. those two commands make selecting code so much faster. I feel crippled editing code without it.

antoine-gallix avatar Jun 29 '22 16:06 antoine-gallix

This could be possible after a big refactoring in the editor to support this kind of operations. For now, it's really not possible.

ccordoba12 avatar Jun 29 '22 21:06 ccordoba12