G.S
G.S

Reputation: 10871

IntelliJ shows method parameter hints on usage - How to disable it

I am new to IntelliJ and recently updated to IntelliJ-2016.3.
In the editor for Java code, it shows the method signature upon usage. How do I disable this feature?

Here's an example of a method's signature and its call site:

1

Method call:

2

This behavior was not there in 2016.1.4 version. I am seeing this after update.

Upvotes: 337

Views: 105639

Answers (10)

kaung htet naing
kaung htet naing

Reputation: 101

For Intellij IDEA 2022 Editor -> Inlay Hints -> Code vision -> Usages , Uncheck this

Upvotes: 2

matrix
matrix

Reputation: 3080

As on 2022 (WebStorm 2022.1.2), the option is under the Editor → Inlay Hints. Uncheck the parameter names checkbox.

enter image description here

Upvotes: 5

Muhammad Hewedy
Muhammad Hewedy

Reputation: 30058

As of 2022, it's been renamed to "inlay hints"

You can disable it by pressing shift + shift, then type inlay hints and then disable it.

enter image description here

Upvotes: 12

Alex Styl
Alex Styl

Reputation: 4219

Others have already answered this, but here is a way of finding it without jumping into menus.

Try hitting ⌘ + Shift + A on Mac or CTRL + SHIFT + A on Linux and type the Show parameter name hints into the search bar.

Show parameter appears when searching from the Action/Option name search bar

Upvotes: 16

Bartek Lipinski
Bartek Lipinski

Reputation: 31438

  1. ⌘ + Shift + A
  2. Type Inlay Hints
  3. Make sure that the language of your choice has Types set up properly!!! Here's an example for Kotlin: Inlay Hints settings

Upvotes: 5

Alex Kalmikov
Alex Kalmikov

Reputation: 2153

In latest version you can find it under Settings → Editor → Inlay Hints

enter image description here

Upvotes: 23

wired00
wired00

Reputation: 14438

I find it helpful to use a shortcut such as P + shift + command to toggle parameter type hinting as needed. I don't want it disabled entirely.

  1. open preferences
  2. click Keymap
  3. filter by parameter
  4. double click on Toggle parameter name hints
  5. enter key combination ie, P + shift + command
  6. Apply and Ok
  7. Now the key combo will toggle hints for you.

enter image description here

Upvotes: 58

roizpi
roizpi

Reputation: 3648

Right click on the hint, then on Disable:

enter image description here

Upvotes: 216

agilob
agilob

Reputation: 6223

Untick the bottom option Show parameter name hints

Show parameter name hints

Upvotes: 300

user180100
user180100

Reputation:

From the what's new page:

Parameter hints

The editor now shows parameter hints for literals and nulls used as method arguments. These hints make code much more readable.

If you find hints redundant for a certain method, you can tell the IDE not to show hints for this method. To disable hints completely, uncheck Settings → Editor → General → Appearance → Show parameter name hints.

(emphasis is mine)

Upvotes: 18

Related Questions