Can I disable the expression hint intentions somehow?
They're always shown first and I keep using them accidentally but they're least important.
I cannot find them unter "Intentions" preferences.
m
Mike
02/05/2019, 5:30 PM
I’ve never seen it before. What does it do to the code?
It it perhaps an inspection? Although I did a search everywhere, and nothing specific appeared when I typed ‘lambda return’
m
Marc Knaup
02/05/2019, 5:33 PM
Well it's not a code-modifying intention. Instead it changes a preference setting:
Preferences > Editor > General > Appearance > Show parameter name hints > Configure… > Show lambda return expression hints
m
Mike
02/05/2019, 5:35 PM
Ahhh. I’ve never seen that pop-up as an option like it was an inspection/intention. I assume this is from hitting ‘alt-enter/option-enter’.
Perhaps it’s a bug in IntelliJ or the Kotlin plugin? I wouldn’t expect preferences to appear in the ‘Show Intention Actions’ menu.
m
Marc Knaup
02/05/2019, 5:36 PM
It's fine to have them as long as I can disable or at least sort them 🙂
m
Mike
02/05/2019, 8:41 PM
Perhaps because you've accidentally clicked it enough times, intellij thinks that's you're preferred option. I'm not familiar with how it decides ordering. I know you have some options with code completion but don't know if those impact this, or if there are unique options, or its totally up to the ide.
m
Marc Knaup
02/05/2019, 8:42 PM
Given how often I accidentally selected it it may very well think I love that option! 😄