rubberduck-vba / Rubberduck

Every programmer needs a rubberduck. COM add-in for the VBA & VB6 IDE (VBE).
https://rubberduckvba.com
GNU General Public License v3.0
1.92k stars 302 forks source link

Add line swap shortcuts like vscode #5895

Open ShortArrow opened 3 years ago

ShortArrow commented 3 years ago

Justification

This feature is one of the reasons why I want to reject VBA and adopt a language that can be used with vscode.

Description

Add swap lines feature like vscode of Move line up and down

Vogel612 commented 3 years ago

Because any feature like this will necessarily interact with the the selection inside the vbe, this is somewhat complex to implement. Moving all selected lines around is surprisingly complex, especially since we can't rely on the parser state to accomplish this (if we want this to be useful at all we can't reparse between every move)