Android studio format code won't auto break line

前端 未结 8 1458
名媛妹妹
名媛妹妹 2020-12-30 19:41
tempCanvas.drawArc(cx - mInnerCircleRadius, cy + mInnerCircleRadius,cy + mInnerCircleRadius,cy + mInnerCircleRadius);

For example, the above code i

8条回答
  •  梦毁少年i
    2020-12-30 20:35

    Configure > Settings > Editor > 'Use soft wraps in editor'
    

    Or right click on the divider where you can choose to show line numbers, and click 'Use soft wraps'

    This won't break your code at your commas, but it will wrap your code so it's not too long to read.

提交回复
热议问题