Is there any way to avoid the code completion sugg...
# intellij
p
Is there any way to avoid the code completion suggestion with 
( <argument> )
  in IntelliJ for kotlin function which accepts function as an argument , I mostly use the outside 
{ }
 and often times clicks the one with 
( )
 ?
Copy code
fun foo(block:(String, String) -> Unit){
  //Do something
}
👍 1
d
It’s interesting that it looks like the opposite case for this issue https://youtrack.jetbrains.com/issue/KT-30936 And I guess there is no solution at the moment 🤔
p
Yes for single parameter it only presents the curly braces for multiple params it presents both. their should be some settings so developers or teams can control what they prefer . Eg in this case https://youtrack.jetbrains.com/issue/KT-40038 I totally agrees curly braces will look ugly. whereas if call to
s.add
is direct instead of a delegation below will look better so its more based on context
Copy code
s.add { }