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

Summary: feature request: autodocument method parameters at their invocation calls by inserting parameter names as comments
Product: editor Reporter: anilp1 <anilp1>
Component: Completion & TemplatesAssignee: Dusan Balek <dbalek>
Status: NEW ---    
Severity: normal    
Priority: P1    
Version: 7.4   
Hardware: All   
OS: All   
Issue Type: ENHANCEMENT Exception Reporter:

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.