jeudi 28 août 2014

Configure Intellij for Java 8 lambda defaults


Vote count:

0




Is it possible to have intellij always declare lambdas in a certain way.


For instance, sometime intellij will refactor a lambda into:



method(length, index -> { return null; })


using blocks but no parentheses on the parameter index. It makes it hard to adjust at time.


I would like it to always use this syntax instead:



method(length, (index) -> { return null; })

method(length, (Integer index) -> { return null; })


And always use blocks, unless it is a method reference, ie obj::method.


Can this be done?



asked 27 secs ago







Configure Intellij for Java 8 lambda defaults

Aucun commentaire:

Enregistrer un commentaire