Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Wrap chained method class with this qualifier

$
0
0

When setting as "wrap always" for chained method calls, anything with a this qualifier is, in my opinion, incorrectly wrapped before the first method call.

 

i.e.:

this.myVar

        .myMethod()

       .mySecondMethod();

instead of:

this.myVar.myMethod()

               .mySecondMethod();

 

If "align when multiline" is also on for chained method calls, it also doesn't seem to align to any period or variable name or keyword in particular, as shown above (in my case that's 2 tabs worth).


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>