moh*_*hax 8 java android keyboard-shortcuts intellij-idea android-studio
我有简单的课程:
public class A {
private int a;
private int b;
public A(int a) {
this.a = a;
}
}
Run Code Online (Sandbox Code Playgroud)
现在我想添加int b
тоconstructors参数并使用新参数初始化类字段.所以它最终必须是:
public A(int a, int b) {
this.a = a;
this.b = b;
}
Run Code Online (Sandbox Code Playgroud)
那么,if IDEA
(AndroidStudio
)有shortCut吗?
PS同样的问题Eclipse
:向现有构造函数添加字段的快捷方式
归档时间: |
|
查看次数: |
4369 次 |
最近记录: |