如何在IntelliJ IDEA Community中显示函数的预期参数?

huangapple go评论63阅读模式
英文:

How to show expected parameters for a function in IntelliJ IDEA community?

问题

我是Java的初学者,刚刚安装了IntelliJ IDEA社区版,因为我的编程课程是使用这个集成开发环境。

现在,例如当我输入类似以下内容时:

SimpleDateFormat simpleDate = new SimpleDateFormat(

我期望IntelliJ IDEA显示需要的参数类型,但它不会显示我需要输入的参数。

有没有一种快速的方法来设置这个?当我在Visual Studio学习C#时,一个小弹出窗口总是会显示我每个可能方法所期望的参数。

请帮忙解决。

谢谢。

英文:

I am a beginner in Java and just installed IntelliJ IDEA Community because my programming course is working with that IDE.

Now e.g. when I write something like

SimpleDateFormat simpleDate = new SimpleDateFormat(

I would expect that IntelliJ IDEA shows what parameters (type) is needed but it won't show what parameters I have to enter.

Is there a quick way of setting that up? When I learned C# in Visual Studio a little popup always showed me what parameters are expected for each possible method.

Please help.

Thanks.

答案1

得分: 2

我认为你可以使用Ctrl+P来查看参数,但是Ctrl+Q会为你提供更多有关该函数的信息。

英文:

I think that you may use Ctrl+P to see the parameters, but Ctrl+Q gives you more information about the function.

huangapple
  • 本文由 发表于 2020年8月16日 16:50:07
  • 转载请务必保留本文链接:https://go.coder-hub.com/63434916.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定