개발/개발 기타
[Tip of the Day] IntelliJ
똘똘이박사
2023. 6. 19. 08:42
Move statements up and down
The Code | Move Statement Up/Down actions are useful for reorganizing code lines, for example for bringing a variable declaration closer to the variable usage.
Select a code fragment and press Ctrl Shift ↑ or Ctrl Shift ↓ .
When nothing is selected in the editor, the line at the caret position will be moved.
마우스 커서가 위치한 영역의 위/아래로 이동 시킨다.
마우스 커서가 메서드명에 위치해 있으면 해당 메서드를 위/아래로 이동 시킨다.
일반적인 코드 위에 커서가 위치하고 있으면 해당 코드만 위/아래로 이동 시킨다.
반응형