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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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: