Issue
There´s any eclipse shortcut to stance a new object ? For example. I would like to type:
Object zzz =
and it would complete for me this way:
Object zzz = new Object();
with void parameter of course. I will wait answers.. thank you people.
Solution
Try the template 'new':
1) type new and then ctrl+space.
2) Choose the 'create new object' option
3) Insert the class name and parameters (if needed)
If you don't want the parameters, you can create a template yourself (preferences->java->editor->templates). Assign a unique name to it, and set the pattern to:
${type} ${name} = new ${type}();
Answered By - Eyal Schneider