In 2025.1 EAP, with K2 enabled, parameter name inlay hints are always shown, right? There doesn't seem to be an option to have them only for literals anymore?
youtrack 1
solved 1
a
Anton Mefodichev
01/22/2025, 9:09 AM
Hi! Can you please provide a little bit more details regarding the issue? The code and screenshots what do you see with K1 and K2 would help. Thank you!
h
hho
01/22/2025, 12:12 PM
I can not give you the code, but here is an example from a unit test:
With K1, only the literal value (i.e. the value that needs explaining) has the parameter inlay hint. That's perfect.
thank you color 1
hho
01/22/2025, 12:12 PM
With K2, the same line of code becomes overly verbose (and also needs a lot of horizontal space now).
a
Anton Mefodichev
01/27/2025, 9:26 AM
Copy code
class Foo {
fun bar(buzz: Buzz) {
}
}
class Buzz(
val param1: Int,
val param2: MyEnum
)
enum class MyEnum {
FIRST
}
fun main() {
val foo = Foo()
foo.bar(Buzz(11, MyEnum.FIRST))
}