How to turn off type hint in java stream sequences
IntelliJ 2019.2 CE
- Navigate to:
Preferences -> Editor -> Inlay Hints -> Java
. Alternatively, pressCMD (⌘)
/Ctrl
+Shift
+A
, search forInlay Hints
, open the first result, and selectJava
. - Untick
Method Chains
tickbox
Alternatively, you can increase the count of unique types in streams/method chains from which the type hints will be shown. I.e., if your stream transforms from type A
to type B
, and then to type C
, this would be 3 types. If you set it to 2, hints would be shown for 3 unique types and more.