2016년 7월 4일 월요일

intellij code format (Line Breaks and Wrapping)

이클립스에선 코드 포멧을 실행하면 line length 에 따라 코드 정리가 실행 되는데
intellij 에선 line length 에 따라 정리가 되는게 기본옵션이 아니라 되지 않는다.
stack overflow 에서 그 방법을 찾아 남긴다.

Format existing code

  1. Ensure right margin is not exceeded
    File > Settings > Editor > Code Style > Java > Wrapping and Braces > Ensure right margin is not exceeded
    File Settings Ensure right margin
  2. Reformat code
    Code > Reformat code...
    Reformat code
    or press Ctrl + Alt + L

댓글 없음:

댓글 쓰기

Intelij 설정 및 plugin

1. preferences... (settings...) Appearance & Behavior > Appearance - Window Options        ✓   Show memory indicator Editor &...