Android studio format code won't auto break line

前端 未结 8 1407
名媛妹妹
名媛妹妹 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:14

    On the latest Android Studio:

    1. Goto File > Settings > Editor > Code style > Java > Wrapping and Braces
    2. Change do not wrap to wrap if long for all the items
    3. Now Select the portion of the text you want to format and press ctrl + Alt + L

提交回复
热议问题