Is there a shortcut for adding fields to existing constructor in Eclipse?
问题 Is there any shortcut in Eclipse that allows me to add a field to the argument list of an existing constructor? Example: I hava this class: public class A { int a; int b; public A(int a, int b) { this.a = a; this.b = b; } } when i add a field int c (or many fields) i want to add it to the argumentlist of the constructor and assign the parameter to the field: public class A { int a; int b; int c; //this is new public A(int a, int b, int c) { this.a = a; this.b = b; this.c = c; } } i currently