【问题标题】:Intellij call method: how to auto complete with all argumentsIntellij 调用方法:如何使用所有参数自动完成
【发布时间】:2019-06-10 01:09:03
【问题描述】:

Intellij 调用方法:如何自动完成所有参数?

例如:方法 foo

public class Foo {
    public void doSomething(int name, int value, int somethingElse) {
        ...

    }
}

在子类中

public class Bar extends Foo {
    @Override
    public void doSomething(int name, int value, int somethingElse) {
       super.doSomething(_);

     }

}

调用超类 doSomething(..) 方法,它的参数不是自动完成的,我必须输入所有具有相同名称的参数。

与调用其他类的方法相同的问题。在日食中,他们将 由最佳猜测自动完成。如何在 Intellij 中实现这一点?

【问题讨论】:

标签: intellij-idea


【解决方案1】:

使用Code | Completion | SmartType Ctrl+Shift+空格

【讨论】:

    猜你喜欢
    • 2010-09-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-03-19
    • 2022-07-07
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多