공부

[Window] Intellij IDEA(인텔리제이) 단축키 정리

희구 2021. 9. 10. 12:58

내가 보려고 정리하는 인텔리제이 단축키

 


 

REMEMBER THESE SHORTCUTS (반드시 외워라)

단축키 설명
Ctrl + Shift + Space 적합한 코드 자동완성을 추천 (Smart Code Completion)
Shift + Shift 파일, 클래스, 설정 등 키워드에 관련된 가능한 모든 것을 검색 (Search Everywhere)
Alt + Enter 현재 코드에 대한 퀵 픽스 제안 (Show intention actions and quick-fixes)
Alt + Insert 코드 생성 , 새로운 클래스나 패키지 만들때 , 생성자, getter setter 만들 때(Generate code)
Ctrl + P 커서가 위치한 메서드의 매개변수 조회 (Parameter info)
Ctrl + W 커서 근처의 코드 선택 영역 확대 (Extend selection)
Ctrl + Shift + W 커서 근처의 코드 선택 영역 축소 (Shrink selection)
Ctrl + E 최근 사용한 파일 목록 조회 (Recent files popup)
Shift + F6 리네임 (Rename)

 

GENERAL(일반적인)

단축키 설명
Alt + #[0-9] IDEA 상단 도구창 순서에 맞는 도구창 띄움 (Open corresponding tool window)
Ctrl + S 모두 저장 (Save all)
Ctrl + Alt + Y  (Synchronize)
Ctrl + Shift + F12 편집기 영역 최대 크기로 토글 (Toggle maximizing editor)
Alt + Shift + I 현재 프로필 기준으로 현재 파일 검사 (Inspect current file with current profile)
Ctrl + BackQuote (`) 테마 변경 (Quick switch current scheme)
Ctrl + Alt + S 셋팅 창 띄움 (Open Settings dialog)
Ctrl + Alt + Shift + S 프로젝트 구조 창 띄움 (Open Project Structure dialog)
Ctrl + Shift + A 액션을 검색하여 실행 (Find Action)

 

DEBUGGING (디버깅)

단축키 설명
F8/F7 디버깅 한 단계씩 진행 (Step over / into)
Shift + F7/Shift + F8 Smart step into / Step out
Alt + F9 Run to cursor
Alt + F8 Evaluate expression
F9 Resume program
Ctrl + F8 Toggle breakpoint
Ctrl + Shift + F8 View breakpoints

 

SEARCH / REPLACE (검색 및 대체)

단축키 설명
Double Shift 파일, 클래스, 설정 등 키워드에 관련된 모든 것을 검색 (Search everywhere)
Ctrl + F 파일 내 검색 (Find)
F3/Shift + F3 다음 검색 항목 / 이전 검색 항목 (Find next / previous)
Ctrl + R 대체 (Replace)
Ctrl + Shift + F Find in path
Ctrl + Shift + R Replace in path
Alt + J 다음 항목 선택 (Select next occurrence)
Select all occurrences Select all occurrences
Unselect occurrence Unselect occurrence

 

EDITING (편집)

단축키 설명
Ctrl + Space 기본 코드 자동 완성 (Basic code completion)
Ctrl + Shift + Space 적합한 코드 자동완성 추천 (Smart code completion)
Ctrl + Shift + Enter 문장 완성 (Complete statement)
Ctrl + P 매개변수 정보 조회 (Parameter info)
Ctrl + Q Quick documentation lookup
Shift + F1 External Doc
Ctrl + mouse Brief Info
Ctrl + F1 Show descriptions of error at caret
Alt + Insert 프로젝트 창에서 새 파일 생성 (Generate code)
Ctrl + O 매서드 오버라이딩 (Override methods)
Ctrl + I Implement methods
Ctrl + Alt + T Surround with…
Ctrl + / 한줄 주석 생성 / 제거 (Comment / uncomment with line comment C)
Ctrl + Shift + / 블록 주석 생성 / 제거 (Comment / uncomment with block comment)
Ctrl + W 선택영역 확대 (Extend selection)
Ctrl + Shift + W 선택영역 축소 (Shrink selection)
Alt + Q Context info
Alt + Enter 퀵픽스 제안 (Show intention actions and quick-fixes)
Ctrl + Alt + L 코드 정리 (Reformat code)
Ctrl + Alt + O import 정리 (Optimize imports)
Ctrl + Alt + I 자동 인덴트(들여쓰기) 맞춤 (Auto-indent line(s))
Tab/Shift + Tab 인덴트(들여쓰기) 추가 / 취소( Indent / unindent selected lines)
Ctrl + X, Shift + Delete Cut current line to clipboard
Ctrl + C , Ctrl + Insert Copy current line to clipboard
Ctrl + V, Shift + Insert Paste from clipboard
Ctrl + Shift + V Paste from recent buffers...
Ctrl + D 현재 라인 복제 (Duplicate current line)
Ctrl + Y Delete line at caret
Ctrl + Shift + J Smart line join
Ctrl + Enter Smart line split
Shift + Enter Start new line
Ctrl + Shift + U Toggle case for word at caret or selected block 
Ctrl + Shift + ]/[ Select till code block end / start
Ctrl + Delete Delete to word end
Ctrl + Backspace Delete to word start
Ctrl + NumPad+/- Expand / collapse code block
Ctrl + Shift + NumPad+ Expand all
Ctrl + Shift + NumPad Collapse all
Ctrl + F4 Close active editor tab

 

REFACTORING (리팩토링)

단축키 설명
F5 복사 (Copy)
F6 이동 (Move)
Alt + Delete Safe Delete
Shift + F6 이름 변경 (Rename)
Ctrl + Alt + Shift + T Refactor this
Ctrl + F6 Change Signature
Ctrl + Alt + N Inline
Ctrl + Alt + M Extract Method
Ctrl + Alt + V Extract Variable
Ctrl + Alt + F Extract Field 
Ctrl + Alt + C Extract Constant
Ctrl + Alt + P Extract Parameter

 

NAVIGATION (이동)

단축키 설명
Ctrl + N 클래스로 이동(Go to class)
Ctrl + Shift + N 파일로 이동 (Go to file)
Ctrl + Alt + Shift + N Go to symbol
Alt + Right/Left 에디터 탭 이동 (Go to next / previous editor tab)
F12 Go back to previous tool window
Esc 에디터 창으로 돌아가기 (Go to editor (from tool window))
Shift + Esc Hide active or last active window
Ctrl + G 라인으로 이동 (Go to line)
Ctrl + E 최근 파일 검색 (Recent files popup)
Ctrl + Shift + E 최근 위치 검색 (Recent locations popup)
Ctrl + Alt + Left/Right Navigate back / forward
Ctrl + Shift + Backspace Navigate to last edit location
Alt + F1 Select current file or symbol in any view
Ctrl + B, Ctrl + Click 함수 사용하고 있는 사용처 찾기 (Go to declaration)
Ctrl + Alt + B Go to implementation(s)
Ctrl + Shift + I Open quick definition lookup
Ctrl + Shift + B Go to type declaration
Ctrl + U Go to super-method / super-class
Alt + Up/Down Go to previous / next method
Ctrl + ]/[ Move to code block end / start
Ctrl + F12 File structure popup
Ctrl + H Type hierarchy
Ctrl + Shift + H Method hierarchy
Ctrl + Alt + H Call hierarchy
F2/Shift + F2 Next / Previous highlighted error
F4/Ctrl + Enter Edit source / View source
Alt + Home 네비게이션 바 보이기 (Show navigation bar)
F11 (Toggle bookmark)
Ctrl + F11 Toggle bookmark with mnemonic
Ctrl + #[0-9] Go to numbered bookmark
Shift + F11 Show bookmarks

 

COMPILE AND RUN (컴파일 및 실행)

단축키 설명
Ctrl + F9 프로젝트 빌드 (Build project)
Ctrl + Shift + F9 선택한 파일, 패키지 혹은 모듈 컴파일 (Compile selected file, package or module)
Alt + Shift + F10/F9 configuration 선택 후 실행 / 디버깅 (Select configuration and run / debug)
Shift + F10/F9 프로젝트 실행 / 디버깅 (Run / Debug)
Ctrl + Shift + F10 Run context configuration from editor
Double Ctrl Run anything

 

 

USAGE SEARCH (사용처 검색)

단축키 설명
Alt + F7/Ctrl + F7 함수 사용처 탐색 / 파일 내 사용처 탐색 (Find usages / Find usages in file)
Ctrl + Shift + F7 파일 내 사용처 하이라이트 (Highlight usages in file)
Ctrl + Alt + F7 사용처 조회 (Show usages)

 

VCS / LOCAL HISTORY ( Git과 같은 버전 관리 시스템)

단축키 설명
Ctrl + K 프로젝트 변경 내역 commit (Commit project to VCS)
Ctrl + T VCS로 부터 프로젝트 업데이트 (Update project from VCS)
Ctrl + Shift + K commit내역 puch (Push commits)
Alt + BackQuote (`) VCS 팝업 띄움 ('VCS’ quick popup)

 

 

LIVE TEMPLATES (인텔리제이 코드 템플릿)

단축키 설명
Ctrl + Alt + J Surround with Live Template
Ctrl + J Insert Live Template

 

 


1. sout + enter : System.out.println(); 자동 완성
2. psvm + enter : public static void main(String[] args) {} 메인 메서드 자동 완성
3. Alt + Insert : 새로운 클래스나 패키지등을 만들 때 사용 / 생성자, getter and setter을 만들 때 유용하다.
4. Ctrl + Alt + s : Files->settings 로 이동
5. Ctrl + Alt + b : 해동 코드의 구현부로 이동
6. Ctrl + Alt + v : 값은 받을 변수 생성
7. Ctrl + e : 최근 사용한 파일 목록을 조회
8. Ctrl + Shift + enter : 줄의 끝에 쉼표를 자동으로 입력
9. Alt + Shift + m : Extract Method 생성
10. iter + enter : foreach문을 자동 완성

 

 

출처 : IntelliJIDEA_ReferenceCard.pdf (jetbrains.com)

'공부' 카테고리의 다른 글

20240109  (0) 2024.01.09