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 270966

Summary: Enable Code Assistance to propose object name based on class name
Product: cnd Reporter: gromit190
Component: EditorAssignee: Alexander Simon <alexvsimon>
Status: NEW ---    
Severity: normal    
Priority: P3    
Version: 8.2   
Hardware: PC   
OS: Other   
Issue Type: ENHANCEMENT Exception Reporter:
Attachments: Comparing code assistance object name proposal in Java and CND

Description gromit190 2017-06-26 08:16:35 UTC
When developing a Java project in NetBeans, Code Assistance (ctrl+space) proposes that the name of an object is equal to the name of the class which the object will be an instance of. Example:

MyClass myClass;

When typing this, I could use code assistance to generate the variable (object) name for me. I've become absolutely addicted to this feature, because I usually name my objects like this (when coding Java) and it seems very common to do so.

I would love to see the same feature in NetBeans CND
Comment 1 gromit190 2017-06-26 08:21:03 UTC
Created attachment 164627 [details]
Comparing code assistance object name proposal in Java and CND