how to turn off break line in eclipse

后端 未结 4 874
深忆病人
深忆病人 2021-02-01 16:31

Does anybody know how to turn line breaking in eclipse after you press CTRL + SHIFT + F (code format), ex :

System.err
                    .println         


        
4条回答
  •  暖寄归人
    2021-02-01 17:32

    In Helios, set 'Line Wrapping/Function Call/Indentation Policy' to 'Indent on Column' for all cases. This seems to stop the pathological case where it splits a line to try and fit within a fixed width but ends up with it further to the right than it would have been unsplit.

    Or, as suggested above, disable line wrapping, or set a very wide line width. But I find it better to have it wrap and get it right than not to wrap at all.

提交回复
热议问题