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

Java code style - align question

$
0
0

Hi,

 

I am fighting with align/wrap configuration for java code style. I have a following code:

 

   return select().from(quota).where(quota.hierarchyType.eq(QuotaHierarchyType.CHILD_DEFAULT).and(quota.parentOrgItemId.eq(id.getId()))).list(quota);

 

 

I would like to have following format (I do it manually):

 

   return select().from(quota)

               .where(quota.hierarchyType.eq(QuotaHierarchyType.CHILD_DEFAULT)

               .and(quota.parentOrgItemId.eq(id.getId())))

               .list(quota);

 

 

But whenever I reformat that file (by idea java formatter), idea will toch also this block and reformats it to:

 

   return select().from(quota)

               .where(quota.hierarchyType.eq(QuotaHierarchyType.CHILD_DEFAULT)

                         .and(quota.parentOrgItemId.eq(id.getId())))

               .list(quota);

How to configure code style not to touch my formatting ( indent ".and(..." ) in such code block?
Thx.
Dusan

Viewing all articles
Browse latest Browse all 5661

Trending Articles



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