scala - Infix method call in IntelliJ IDEA -


whenever trying use infix method call, intellij idea adds parentheses after method name.

for example:

val xs = list(1,2,3) 

if type xs contai , press enter, intellij idea completes expression follows:

xs contains() 

but expect without parentheses:

xs contains  

is there option disable adding parentheses infix method call?

i use intellij idea 12.1 scala plugin 0.7.213.

[updated]

the method want call

def contains(elem: any): boolean 

from scala.collection.immutable.list

the complete expression xs contains 1

there no such option, , there no plans add in future yet. reason it's not infix call, want, it's postfix call, , after postfix call have use semicolon or line feed. both things pretty ugly, that's why in scala 2.10 warning postfix calls usages.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -