IntelliJ 시작 하며 단축키 정리

2021. 3. 12. 17:21프로그램/IntelliJ

728x90
반응형
기능 window,linux mac
메소드 실행 및 파일 생성
프로젝트 신규 파일 생성목록(디렉토리,패키지, 클래스 등)  alt + insert command + n
메인메소드 / public static void main(String[] args) { psvm psvm
System.out.println(); sout sout
소스 실행 -현재 포커스 ctrl + shift + F10 ctrl + shift + r
소스 실행 -바로 직전 재실행 shift + 10 ctrl + r
라인수정
라인복사 ctrl + d command + d
라인삭제 ctrl + y command + backspace
문자열 한줄로 병합  ctrl + shift + j ctrl + shift + j
구문에관계 없이 라인 이동 시키기  shift + alt + ↑,↓(방향키) shift + option+ ↑,↓(방향키)
라인 이동 시키기 shift + ctrl + ↑,↓(방향키) shift + command+ ↑,↓(방향키)
html,xml에서 엘리먼트 단위로 좌우 이동
(ex-  id, name 좌우변경)
ctrl + shift + alt + →,←(방향키) option + shift + command + →,←(방향키)
코드 바로보기
인자값 바로 보기(생성자에서 인자값(변수)바로 확인) ctrl + p command + p
객체 구현소스 바로 보기 / html화면단에 임포트 시키는 .js파일 .css 파일도 파일에 직접가지 않고 미리 보기 가능 ctrl + shift + i option + space
document 바로보기 / 자바스크립트 기능도 가능  ctrl + q f1
포커스 에디터
커서 단어단위 이동 ctrl + →,←(방향키) alt + →,←(방향키)
단어별 드래그  ctrl + shift + →,←(방향키) shift + alt + →,←(방향키)
라인 시작, 끝 이동 home, end Fn + →,←(방향키)
라인별 드래그  shift + home, end shift + command + →,←(방향키)
페이지단위 위아래 이동 pageUp, pageDown Fn + ↑,↓(방향키)
포커스 특수키
커서 기준으로 소스 구조별 한단계 씩 드래그 ctrl + w alt + ↑(방향키)
커서 기준으로 소스 구조별 한단계 씩 드래그 풀기 ctrl + shift + w alt + (방향키)
커서 앞뒤로 변경  ctrl + alt + →,←(방향키) command + [, ]
멀티포커스 **방향키 누르기전에 컨트롤이나 알트 누른상태로 방향키 ctrl + ctrl + (방향키) alt + alt + (방향키)
오류 코드 자동 이동 F2 F2
문자열 검색
현재 파일 문자열 검색  ctrl + f command + f
현재 파일 문자열 검색 후 변경 ctrl + r command + r
프로젝트 전체 문자열 검색 ctrl + shift + f command + shift + f
프로젝트 전체 문자열 검색 후 변경 ctrl + shift + r command + shift + r
정규표현식 검색, 교체 Regex 체크 Regex 체크
검색 기타
파일검색 ctrl + shift + n shift + command + o
객체 검색 shift + ctrl + alt + n alt + command + o
find action(모든 이벤트, 옵션 검색) ctrl + shift + a shift + command + a
최근 오픈한 파일 목록 ctrl + e command + e
최근 수정한 파일 목록 ctrl + shift + e command + shift + e
자동완성
스마트 자동완성 ctrl + shift + space ctrl + shift + space
static 메소드 자동완성 단축키 두번 ctrl + shift + space (두번) ctrl + shift + space (두번)
생성자,getter,setter 자동완성  alt + insert command + n
override 메소드 자동완성 ctrl + i ctrl + i
live template
live template목록 보기 ctrl + j command + j
리펙토링 extract
변수 추출 ctrl + alt + v command + option + v
파라미터 추출 ctrl + alt + p command + option + p
메소드 추출 ctrl + alt + m command + option + m
이너클래스 추출 f6 f6
리팩토링 기타
이름(변수명, 메소드명 등) 일괄변경 shift + f6 shift + f6
타입(메소드 리턴타입) 일괄변경 ctrl + shift + f6 command + shift + f6
사용하지 않는 import선언 정리(수동)
find action 검색에서 optimize imports on the fly 체크하면 자동으로 정리해줌
ctrl + alt + o ctrl + option + o
코드 자동 정렬 ctrl + alt + l command + option + l
디버깅
현재위치 메소스 debug   ctrl + shift + d
이전에 실행한 메소드 debug shift + f9 ctrl + d
resume (다음 브레이크 포인트 이동 ) f9 command + option + r
step over(현재 브레이크 부터 다음 한줄 순차 이동) f8 f8
step into(현재 브레이크의 다음 메소드 이동) f7 f7
step out(현재 메소드의 밖으로 이동) shift + f8 shift + f8
evaluate expression(브레이크 포인트 상태 의 코드 사용) alt + f8 option + f8
watch(브레이크이후 코드 확인하기 직접설정가능)
git 기본 기능
git view on alt + 9 command _ 9
git option popup alt + ` ctrl + v
git history alt + ` 후에 리스트에서 4번 ctrl + v 후에 리스트에서 4번
branch alt + ` 후에 리스트에서 7번 ctrl + v 후에 리스트에서 7번
commit ctrl + k command + k
push ctrl + shift + k command + shift + k
pull  intellij에서 따로 지원하지 않음 직접 만들거나 action검색창에 검색해 수동 실행
기타
settings popup ctrl + alt + s  
728x90

'프로그램 > IntelliJ' 카테고리의 다른 글

intellij 테스트시 한글 깨짐  (0) 2021.07.27