p42ai / js-assistant

120+ refactorings and code-assists for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=p42ai.refactor
MIT License
119 stars 7 forks source link

Support Moving Up / Down Multiple Items At Once #49

Closed hediet closed 1 year ago

hediet commented 1 year ago

E.g. when all this is selected and I press control+down:

image

lgrammel commented 1 year ago

Thanks, this is a great suggestion!

lgrammel commented 1 year ago

I've added this feature for most move statements in v1.147.0. When there is a selection that spans several elements (can be partial) and move gets started, it moves multiple code elements.