151

enter image description here

int beginIndex, int endIndex

is important when we invoke methods.

How to show this when the cursor is in the brackets? enter image description here

guo
  • 9,674
  • 9
  • 41
  • 79
  • Possible duplicate of [IntelliJ IDEA hint parameters of method](http://stackoverflow.com/questions/1783180/intellij-idea-hint-parameters-of-method) – Gregor Nov 03 '16 at 10:21

5 Answers5

239

Got the final answer.

Just Ctrl +P in Windows/Linux

or +P in macOS.

JetBrains reference: Parameter Info

OmegaJak
  • 13
  • 1
  • 3
guo
  • 9,674
  • 9
  • 41
  • 79
25

To view the method parameters

  1. Place the caret anywhere within the call of the desired method or function.
  2. Choose View | Parameter Info on the main menu or press Ctrl+P.

To configure the behavior of the view parameter information functionality

  1. Open the IDE Settings and click Code Completion below the Editor node.
  2. In the Parameter info section, define the following options:

    • To have a complete method or function signature shown rather than a list of required types, select the Show full signatures check box. Make sure to include the required third-party libraries in the project source path. Otherwise, names of the parameters will not be displayed.

    • To have the list of parameter types for the called method or function shown automatically after a certain delay, select the Auto pop-up (in ms) check box and specify the time period in milliseconds.

ROMANIA_engineer
  • 54,432
  • 29
  • 203
  • 199
Anju Prasad
  • 351
  • 2
  • 3
18

If you have non-standard bindings (or want to change what this is bound to), then look here:

Settings > Keymap > Main menu > View > Tool Windows > Parameter Info

And see what the binding is and/or change it to what you want.

Matt Klein
  • 7,856
  • 6
  • 45
  • 46
8

Default shortcut to show parameter info in IDEA is ctrl+P.

Here is a sheet from JetBrains with this and other useful keyboard shortcuts: https://resources.jetbrains.com/storage/products/intellij-idea/docs/IntelliJIDEA_ReferenceCard.pdf

pixelpax
  • 1,435
  • 13
  • 22
Pavel
  • 318
  • 3
  • 13
-3

This tooltip appears on mouse over events.

Workaround with keyboard: Try to use quick documentation pop-up CTRL+Q .

qwazer
  • 7,174
  • 7
  • 44
  • 69