This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 231389 - feature request: autodocument method parameters at their invocation calls by inserting parameter names as comments
Summary: feature request: autodocument method parameters at their invocation calls by ...
Status: NEW
Alias: None
Product: editor
Classification: Unclassified
Component: Completion & Templates (show other bugs)
Version: 7.4
Hardware: All All
: P1 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-06-17 19:40 UTC by anilp1
Modified: 2013-06-17 19:42 UTC (History)
0 users

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description anilp1 2013-06-17 19:40:11 UTC
I have a feature request: autodocument method parameters at their invocation calls by inserting parameter names as comments.

Just as there is a menu option 'Format', Please add a feature as described above that will pull the variable names from the method definition and insert as comments next to each field.

Instead of bar.foo(null,null,"!@#$%@", "ASF"); 

We will get

bar.foo(null/* id */,null/* permanent */,"!@#$%@"/* mailstop */, "ASF"/* join date */)

"I sometimes find myself manually commenting arguments in a method call".

Exactly! Now imagine if you could place your cursor on a method invocation and select "insert method parameter names". A broader brush would be to "insert method parameter names on all usages" of the method.

Anil
Comment 1 anilp1 2013-06-17 19:42:11 UTC
I have not seen this in any editor. If Netbeans can implement this, it will make it a more desirable product.