Force code formatter in IntelliJ to join lines -


I'm trying to force IntelliJ to reformat the code the way the eclipse does this. When I set the width of a line to 120 characters I would like to include the IDE in line which was broken up to several lines (such as line width was set to 80 characters).

I want to go from here:

  int a = 1 + 2;  

To do this here:

  int a = 1 + 2  

What is possible in IntelliJ? I am looking for the appropriate setting in the formatter but can not find it. Can anyone tell me where I can find it?

This works for me in intellij 8 if I:

  File - & gt; Settings - & gt; Code style - & gt; Wrapping - & gt; Binary Operations - & gt; Set to: 'long wrap' or 'do not wrap'  

then CTRL - ALT - L < /

To reformat the code, kbd>

Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -