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.91k stars 299 forks source link

RubberDuck should allow a user to clone a vbComponent #1312

Open ThunderFrame opened 8 years ago

ThunderFrame commented 8 years ago

VBE doesn't offer a way to clone/duplicate a Standard Module, Class or UserForm, other than exporting the component, manually editing the files, and then reimporting.

Rubberduck should automate that process so that a user can clone a component with minimal effort. Ideally, RD asks for the name of the new component, and maybe even makes a default suggestion like "Copy of frmMain"

ThunderFrame commented 8 years ago

RubberDuck should also clean up the temp files.

retailcoder commented 8 years ago

Basically, add copy+paste to the project (native) and code (ours) explorer toolwindows' context menus. Right? (and ideally honor Ctrl+C/Ctrl+V hotkeys too)

ThunderFrame commented 8 years ago

Yep, but I don't think we can clone a document-type VBComponent quite as easily.