类如何在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
类并记住我需要传递的所有参数,这一点都不方便。我希望参数显示在弹出框中。感谢您的帮助:)
共 (0) 个答案