有 Java 编程相关的问题?

你可以在下面搜索框中键入要查询的问题!

类如何在Java(Intellij IDEA)中将鼠标悬停在方法上时弹出参数?

public class Main {

    public static void main(String[] args) {

        Monitor monitor=new Monitor() //When I put my cursor between the parentheses,
                                      //I want the parameters to be visible in a pop-up box
    }
}
public class Monitor {
    private String model;
    private String manufacturer;
    private int size;
    private Resolution nativeResolution;

    public Monitor(String model, String manufacturer, int size, Resolution nativeResolution) {
        this.model = model;
        this.manufacturer = manufacturer;
        this.size = size;
        this.nativeResolution = nativeResolution;
    }
}

问题是,当我将光标放在new Monitor()上的括号之间时,参数列表不会弹出。我必须回到我的Monitor类并记住我需要传递的所有参数,这一点都不方便。我希望参数显示在弹出框中。感谢您的帮助:) This is what happens with me

我想要这个: enter image description here


共 (0) 个答案