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

Add context menu items to Code Explorer to set VB attributes #5120

Open mansellan opened 5 years ago

mansellan commented 5 years ago

Justification Make it easy to set VB attributes directly from the Code Explorer.

Description In the vanilla VBE, it's irksome to set attributes. (Some of the?) module-level attributes can be set from the properties window. For procedure attributes, VB6 has a dialog available, but the UX is extremely poor, and for VBA there is no UI at all - procedure attributes can only be set by exporting the module, adding the attibutes as text and reimporting.

Rubberduck currently helps by automating this process with annotations (and for predeclared modules, a template). However, we can make it easier still by adding context menu items in the Code Explorer that can set these attributes (backed up with RD annotations) with a click or two.

Related: #4876

retailcoder commented 5 years ago

Seems a duplicate of #4790?

mansellan commented 5 years ago

Certainly related, but #4790 approaches from annotations, this approaches from attributes. Happy to merge them?

bclothier commented 5 years ago

Linking #4227