Code Folding for inline impl. of Interface
Hi there
I have a problem that I have not been able to solve one way or another..
If I declare a variable and implement an interface inline eg.:
public Runnable r = new Runnable() {
@Override
public void run() {
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
}
}
when I then fold it ends up with:
public Runnable r = Runnable() {
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
System.out.println("");
};
Is it not possible anymore to fold it completely to a oneliner ? It used to work in Intellij 10, but in 11 it's not.
Any ideas ?
请先登录再写评论。
Hi Svend,
You can uncheck the following box to get the old behavior - 'IDE Settings | Editor | Code Folding | Closures'
Denis
Super - thank you... :D