본문 바로가기

¤ 배우고 찾으며/IT로 먹고살기

[Mac,Win]Eclipse 자주쓰는 단축키 모음


* 비정기적으로 수정 되는 문서입니다.


작업 속도를 올려주는 가장 유용한 방법중 하나인 단축키. Eclipse로 JAVA 개발을 할 때 편리한 단축키들을 정리하기 위해 이 포스트를 만들었다.




도서출판 인사이트에서『Java 세상을 덮친 Eclipse』3판을 출간할 때(2009년) 공개한 문서가 있다. Windows 용 Eclipse 의 단축키 모음이다. 유용하니 가서 참고하자.

출처 : http://www.insightbook.co.kr/post/307 ( 문서링크 )




Mac 에서 사용할 때는 Windows에서의 Ctrl 대신 Command 을 입력하면 대체로 적용된다. 그대로 Control 인 것도 있어서 두 플렛폼에서 사용하려면 다소 헷갈릴 것 같다.


예컨대 Organize imports in the current java file 기능의 경우 Windows에서 [Ctrl + Shift + O] 인 것이 Mac 에서는 [Command(⌘) + Shift + O] 이다.


Moves cursor to the last edited position 기능의 경우 Windows 에서 [ Ctrl + Q ] 인 것이 Mac 에서는 [ Control + Q ] 이다.

아래는 Crunchify.com 에서 정리한 내용이다.


Shortcut Key Mac Shortcut Key Windows Description
Command + 3 Ctrl + 3 In Eclipse Juno, puts the focus into Quick Access search box, in older eclipse opens quick access dialog.
Command + S Ctrl + S Save current editor
Command + 1 Ctrl + 1 Quickfix for errors and warnings, depends on the cursor position
Control + Space Ctrl + Space Content assist and code completion
Command + Shift + F Ctrl + Shift + F Format source code
Control + Q Ctrl + Q Moves cursor to the last edited position
Command + D Ctrl + D Deletes current line in the editor
Command + Shift + O Ctrl + Shift + O Organize imports in the current java file
Command + 2 + L Atl + Ctrl + L Assign statement to new local variable
Command + 2 + F Ctrl + 2 + F Assign statement to a field
Command + O Ctrl + O Shows quick outline of the java class
Command + fn + F11 Ctrl + F11 Runs the current opened java class if main method exists or else run the last launched application
Command + Shift + R Ctrl + Shift + R Open / Search for resources
Command + Shift + T Ctrl + Shift + T Open / Search for types, very useful in finding classes
Command + E Ctrl + E To select an editor from the currently open editors
Command + fn + F8 Ctrl + F8 Shortcut for switching perspectives
Command + [ or Command + ] Alt + ← or Alt + → Go to previous/ next editor position in history
Fn + F3 F3 Move cursor to the declaration of the variable
Command + Shift + P Ctrl + Shift + P Move cursor to the matching bracket
Command + . Ctrl + . Go to the next problem
Command + Shift + . Ctrl + , Go to the previous problem
Fn + F4 F4 Show type hierarchy of the variable
Command + K Ctrl + K Find next for search text in the opened editor
Command + Shift + G Ctrl + Shift + G Search for references in the workspace
Command + T Ctrl + T Shows type hierarchy of the current java class
Command + M Ctrl + M Maximize Java editor
Fn + Shift + F2 Shift + F2 Shows the javadoc of the method, class
Command + Option + R Alt + Shift + R Rename of package, class etc
Command + Option + T Alt + Shift + T Opens the quick refactoring menu

출처 : http://crunfy.me/14Kev1d