====== IntelliJ IDEA Shortcut 단축키 ====== * [[linux:inputmethod|Input Method (입력기, 한글)]]의 fcitx와 ''Ctrl+Alt+Space'' 등이 출돌한다. 해당 페이지를 보고 fcitx의 단축키를 조정해줘야한다. * 나는 ''XWin KwonNam'' keymap 사용중 ===== 주요 단축키 ===== * [[https://blog.jetbrains.com/ko/2020/03/11/top-15-intellij-idea-shortcuts_ko/|가장 많이 사용되는 IntelliJ IDEA 단축키 15개 | JetBrains Blog]] * ''ESC'' : 거의 대부분의 상황에서 에디터로 돌아온다. ==== Code Navigation ==== * ''Ctrl+F12'' : ''File Structure'' 파일 안에서 필드 메소드 등의 구조를 보면서 내비게이션 * ''Alt+Home'' : ''File Structure''와 비슷한데 더 간편 ==== View / 화면 ==== * ''Ctrl+Shift+F12'' : ''Maximize editor pane'' 편집창 최대화 ===== Code Completion ===== * [[https://www.jetbrains.com/help/idea/auto-completing-code.html|Code completion—IntelliJ IDEA]] * [[https://www.youtube.com/watch?v=jTud6GIqVgk|IntelliJ IDEA. Code Completion - YouTube]] ==== Alt+Enter ==== * ''Alt+Enter'' 는 자동완성이라기 보다는 자동 제안 같은 기능. 밑줄등 뭔가 문제가 있어 보이는 영역에서 사용. ==== Complete Current Statement ==== * ''Ctrl+Shift+Enter'' : Statement 완결 시키기. * 마지막 세미콜론('';'') 필요한 경우 등. ==== Basic ==== * **Code -> Completion -> Basic** 의 단축키인 ''Ctrl+Space'' 는 거의 모든 곳에서 사용되는 만능이다. * [[:mac|Mac]] OS X의 경우 ''Command+Space'' 인데 이 키가 Spotlight 나 한글 입력기와 충돌할 수 있으므로 확인해서 적절히 변경해줘야한다. ==== SmartType ==== * **Code -> Completion -> SmartType** 의 ''Ctrl+Shift+Space''는 Type 자동완성을 더욱 정교하게 제안해준다. 한 번 더 누르면 자동완성을 수행한다. ==== Hippie Completion / Cyclic Expand Word ==== * ''Alt+/'' / ''Alt+Shift+/'' 현재 열린 파일의 텍스트를 분석해서 돌아가며 추천해준다. ==== selection ==== === extend selection === * ''Ctrl+w'' : 단어를 확장해가면서 선택. === Surround With... === * ''Ctrl+Alt+T'' : 선택영역에 대해 HTML 태그나 따옴표 처럼 텍스트 양쪽에 함께 붙여야 할 게 있을 경우 자동으로 양쪽을 완성시켜준다. ===== IntelliJ IDEA Key Scheme for Eclipse ===== * Eclipse에서 IntelliJ용 단축키 사용하기 * http://code.google.com/p/ideakeyscheme/ * 파일을 ''eclips/plugins'' 디렉토리에 복사한다. * **Preferences -> General -> Keys** 에서 **Scheme**을 **IntelliJ Idea**로 선택한다. ==== 단축키들 ==== * 좌하단의 모니터 모양 아이콘을 눌러서 툴바 영역을 숨길 수 있다. 이 상태에서 Alt(맥은 Command)키를 연속 두번 누른뒤에 누른 상태를 유지하면 툴바 영역이 일시적으로 나타나게 된다. * [[http://blog.jetbrains.com/idea/2014/03/intellij-idea-13-1-rc-introduces-sublime-text-style-multiple-selections/|IntelliJ IDEA 13.1 RC Introduces Sublime Text Style Multiple Selections]] * ''Ctrl+Shift-I'' : 호출하는 메소드의 구현 코드를 즉시 볼 수 있다. * ''Ctrl+Shift+J'' : Join Lines * ''Ctrl+Shift+Enter'' : 문법 자동완성. ''if'' 입력후 해볼 것. * ''Ctrl+Alt+T'' : 특정 영역을 감싼뒤에 누르면 해당 영역을 호출하는 조건문을 추가할 수 있다. === Matching Code block === * ''Ctrl+[ or ]'' 매칭되는 코드블럭 괄호로 위,아래 이동 * ''Ctrl+Shift+M'' : 매칭되는 코드블럭 괄호로 토글 이동 * ''Ctrl+Shift+[ or ]'' : 가장 가까운 코드블럭 괄호까지 선택 === font size === * ''Increase Font size in All Editors'' : ''Alt+Shift+.(dot)'' * ''Decrease Font size in All Editors'' : ''Alt+Shift+,(comma)'' ==== Custom Key Map ==== * ''Settings -> Editor -> Smart Keys''에서 **Use "CamelHumps" words** 체크하면 Eclipse처럼 Camel Case 단위로 커서 이동/Select * ''Main Menu -> Window -> Editor Tabs -> Close All'' : ''Ctrl+Alt+Shift+F4'' * ''Version Control Systems -> Git|*'' : ''Ctrl+Alt+G'' * ''Annotate'' : ''A'' * ''Show History'' : ''H'' * ''Rollback'' : ''R'', ''Ctrl+Alt+Z'' 이미 할당돼 있음. * ''Resolve Conflicts'' : ''C'' * ''Branches'' : ''B'' * ''Stash'' : ''S'' * ''UnStash'' : ''U'' * ''Toggle Full Screen Mode'' : ''Alt-F11'' * ''Toggle Distraction Free mode'' : abbreviation ''df'' * ''Toggle Presentation Mode'' : abbreviation ''pm'' **Appearance -> Presentation Mode** 글꼴 크기 확대 * ''Split Window'' : ''Ctrl-Shift-\'' * ''Split Vertically'' : ''V'' * ''Split Horizontally'' : ''H'' * ''Goto Next Splitter'' : ''->'' * ''Goto Previous Splitter'' : ''<-'' * ''Run with Coverage'' : ''Ctrl+Alt+Shift+F10'' * ''Reset Font size'' : Abbreviation **rfs** 지정 후 액션에서 ''rfs''로 수행 * ''Open Recent'' : Abbreviation **or** 지정 * [[https://www.jetbrains.com/help/idea/searching-everywhere.html|Searching Everywhere - Help]] - abbreviation 참조 * Action 에서 ''Refresh all Gradle,sbt projects'' 선택 상태에서 ''Alt+Enter''를 눌러서 단축키로 ''Ctrl+Alt+Shift+R'' 추가 -> 정확한 Keymap 명칭은 ''Refresh all external projects'' * [[https://plugins.jetbrains.com/plugin/9567-request-mapper|Request Mapper Plugin]] Request mapping : Abbreviation **rm**