Android studio format code won't auto break line

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

For example, the above code i

相关标签:
8条回答
  • 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.

    0 讨论(0)
  • 2020-12-30 20:38

    File -> Settings > Editor > Code Style.

    Then select Wrap on typing CHECKBOX.

    0 讨论(0)
提交回复
热议问题