Essential Shortcuts
The list of shortcuts in Eclipse is fairly long yet readily available. In fact starting with Eclipse 3.1 the full list of shortcuts can be displayed from anywhere via Ctrl+Shift+L. Nevertheless, call it information fatigue or simply a matter of style, deserving shortcuts frequently remain overlooked.
Below is a list of those shortcuts I find essential. What I mean by that is if you don't use them then you probably need additional time to execute essential everyday tasks and are not very comfortable navigating around.
So without further ado here is the list:
| Ctrl+Shift+T | Find Java Type | Start typing the name and the list gets smaller. Try typing the capital letters of the class only (e.g. type "CME" to find "ConcurrentModificationException") 클래스 명 찾는 창 띄우기 |
| Ctrl+Shift+R | Find Resource | Use this to look for XML files, text files, or files of any other type. which are in your workspace. 프로젝트 내의 화일 찾는 창 띄우기 |
| Ctrl+E | Open Editor Drop-Down | Presents a popup window listing currently opened files. Start typing to limit the list or simply use the down arrow key. |
| Ctrl+O | Quick Outline | Use this to find a method or a member variable in a class. Start typing to limit the choices. Press Ctrl+O a second time to include inherited methods. 퀵 아웃라인 (메소드, 필드 리스트) |
| Ctrl+Space | Content Assist | Context sensitive content completion suggestions while editing Java code. |
| Ctrl+Shift+Space | Context Information | If typing a method call with several parameters use this to show the applicable parameter types. The current parameter where the cursor is will be shown in bold. Ctrl + Space 와 다르게 메소드만 찾아준다. |
| Ctrl+Shift+O | Organize Imports | After typing a class name use this shortcut to insert an import statement. This works if multiple class names haven't been imported too. |
| F3 | Open Declaration | Drills down to the declaration of the type, method, or variable the cursor is on. This works much like a browser hyperlink. 클래스, 메소드, 필드의 선언부를 보여준다. (jar 내의 클래스의 경우 보이지않음) |
| Alt+Left | Backward History | This works like a browser's Back button. |
| Alt+Right | Forward History | This works like a browser's Forward button |
| Ctrl+L | Go to Line | Go to a specific line number. |
| F4 | Open Type Hierarchy | Show the type hierarchy (downward tree) or the supertype hierarchy (upward tree). |
| Ctrl+Alt+H | Open Call Hierarchy | Show where a method is called from. In the Call Hierarchy view keep expanding the tree to continue tracing the call chain. 메소드 이름에서 누르면 그 메소드 쓰는곳을 모두 보여준다. |
| Ctrl+H | Open Search Dialog | Opens a search dialog with extensive search options for Java packages, types, methods, and fields. |
| Alt+Shift+R | Rename - Refactoring | Use this to rename type, method, or field. All existing references will be refactored as well. 클래스명, 메소드명, 필드명 위에서 누르면, 이름을 바꿀수 있다. 참조하는 곳도 모두 바꿔준다. |
| Alt+Shift+L | Extract Local Variable | Use this to create a local variable from the selected expression. This is useful for breaking up larger expressions to avoid long lines. 선택한 코드를 지역변수로 선언해서 참조해준다. |
| Alt+Shift+M | Extract Method | Use this to extract a new method from existing code. The parameter list and return type will be automatically created. 선택한 코드를 메소드로 생성해준다. |
그리고 추가
Ctrl+Shift+G 클래스, 메소드, 필드명 위에서 누르면 참조하는 곳을 모두 찾아준다.
다들 아시겠지만, 혹시 모르시는 분도 계실까봐 올렸습니다.
정말 편하게 자주 쓰는 것이, Alt_Shift_R, Ctrl_Shift_G 두가지 입니다.
그리고, 저는 안쓰고 있었지만, 쓰면 정말 좋을 것 같은것이 Alt+Shift+M 입니다.
안쓰고 계셨다면 한번 써보시길..

CTRL+ALT+방향키UP or 방향키 DOWN - 줄복사
ALT+방향키UP or 방향키 DOWN - 줄이동
전 이거를 젤 많이 쓰는 듯해서 적어봅니당. ㅋㅋ
ctrl+pageup,pagedown
전 에딧터 , 후 에딧터
ctrl + <-방향키 , ->방향키
전에 수정한 소스파일 가서 그쪽 줄로. , 앞에 수정한 소스파일 가서 그쪽줄로 ( 그소스 닫아도 그소스열어줌)
ctrl+2 => rename(2) 누르면 해당된 변수명 전체 리네임할수있음 (아주유용) 변수명또는 함수명 끝쪽부분에서 단축키
ctrl+shift+r
파일명만 알면 바로 열수있음
f4
클래스 상송관계나 그런거 바로봄
ctrl+f7
view 단 이동
ctrl+f8
에딧 모드 변경
alt+shift+r => r
view 이름알면 바로 열수있음
ctrl+3
-_- 이게 궁국의기술 명칭만 알면 뭐든지 알수 있음 ㅎㅎ 에딧창에서 단축키.ㅎㅎ





안드로이드 개발할 때 특히 필요한것이 ctrl+shift+o 죠.
선배님들 개발하는 거 보다가 import 구문 다 치는거보고 깜놀했어요 ㅎㅎ