How to show method parameters hint in Intellij IDEA?

前端 未结 5 2027
生来不讨喜
生来不讨喜 2021-01-30 15:48

int beginIndex, int endIndex

is important when we invoke methods.

How to show this when the cursor is in the brackets?

5条回答
  •  借酒劲吻你
    2021-01-30 16:04

    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.

提交回复
热议问题