mjs
mjs

Reputation: 22369

Intellij code completion, showing method/constructor parameter types and variable names

I find this extremely annoying that you often do not get help with figuring out the parameter signatures of methods and contructors when you have already written the first parameter.

Instead Intellij will show the variables available to you in your context. This is good, but not the first prio. I want to see the signature of the method/constructor as well.

This has the consequence that you always have to keep deleting and CTRL + SPACE to see the signature.

Is there a way around this issue?

Upvotes: 6

Views: 3531

Answers (2)

Software Engineer
Software Engineer

Reputation: 16110

You don't have to press Ctrl+P, you can configure IDEA to always show this information:

Go to Settings > Editor > General > Code Completion

Select the Show full signatures and Autopopup in (ms:) boxes.

Intellij Idea - Configure-Editor-Code-Completion

Upvotes: 19

Bohuslav Burghardt
Bohuslav Burghardt

Reputation: 34776

You can press Ctrl+P to show the signature(s) of the method/constructor, see this link for more details:

https://www.jetbrains.com/idea/webhelp/viewing-method-parameter-information.html

Upvotes: 10

Related Questions