0. 서론
IntelliJ를 이용 시 유용한 단축키를 정리하고자 글을 쓴다.
기존에 유용하게 쓰던 단축키와 글을 쓰기 위해 알게 된 단축키까지 정리한다.
1. 단축키 정리
개인적으로 자주 쓰는 단축키는 강조 표시를 해두었다.
단축키 | 행동 |
Shift + F10 Ctrl + Shift + F10 |
최근 / 현재 파일 실행 |
Ctrl + F2 | 실행 종료 |
F2 Shift + F2 |
아래/ 위 에러 탐색 |
Ctrl + Alt + L | 해당 파일 내 코드 리포맷 |
Ctrl + Alt + O | 해당 파일 내 미사용 import 삭제 |
Ctrl + Shift + Enter |
if, while, for 등의 구문 템플릿 자동 생성 |
Alt + Enter | 강조 표시된 오류에 대한 빠른 수정 |
Alt + Insert | Constructor, getter, equals 등 자동 생성 |
Shift + F6 | 프로젝트 내 리네임 리팩토링 |
Ctrl + B | 해당 인스턴스나 메소드의 선언 위치로 이동 |
Ctrl + / | 해당 라인 주석 처리 |
Ctrl + D | 해당 라인 복사 |
Shift + Delete | 해당 라인 삭제 |
Shift + Enter Ctrl + Alt + Enter |
아래 / 위 새 라인 추가 |
Ctrl + W Ctrl + Shift + W |
선택 영역 확장 / 축소 |
Alt + ↓ Alt + ↑ |
문단 단위 아래 / 위 이동 |
Esc | 에디터 포커스 |
Alt + 1 | 도구창 포커스 |
Alt + 0 | Commit 포커스 |
Alt + 9 | Git 포커스 |
Alt + F12 | Terminal 포커스 |
Ctrl + Alt + V | 변수화 |
Ctrl + Alt + C | 상수화 |
Ctrl + Alt + F | 필드화 |
Ctrl + Alt + P | 매개변수화 |
Ctrl + Alt + M | 메서드화 (2번 누를 시 상세창 표시) |
2. 유용한 사이트
해당 단축키에 필요한 사람은 아래 링크를 통하면 더욱 자세히 알 수 있다.
https://www.jetbrains.com/help/idea/mastering-keyboard-shortcuts.html
반응형