Eclipse 유용한 단축키 Android

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+TFind 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+RFind Resource

Use this to look for XML files, text files, or files of any other type. which are in your workspace.

프로젝트 내의 화일 찾는 창 띄우기

Ctrl+EOpen Editor Drop-DownPresents a popup window listing currently opened files. Start typing to limit the list or simply use the down arrow key.
Ctrl+OQuick 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+SpaceContent AssistContext sensitive content completion suggestions while editing Java code.
Ctrl+Shift+SpaceContext 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+OOrganize ImportsAfter typing a class name use this shortcut to insert an import statement. This works if multiple class names haven't been imported too.
F3Open 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+LeftBackward HistoryThis works like a browser's Back button.
Alt+RightForward HistoryThis works like a browser's Forward button
Ctrl+LGo to LineGo to a specific line number.
F4Open Type HierarchyShow the type hierarchy (downward tree) or the supertype hierarchy (upward tree).
Ctrl+Alt+HOpen 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+HOpen Search DialogOpens a search dialog with extensive search options for Java packages, types, methods, and fields.
Alt+Shift+RRename - Refactoring

Use this to rename type, method, or field. All existing references will be refactored as well.

클래스명, 메소드명, 필드명 위에서 누르면, 이름을 바꿀수 있다. 참조하는 곳도 모두 바꿔준다.

Alt+Shift+LExtract 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+MExtract 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 입니다. 

 

안쓰고 계셨다면 한번 써보시길..


출처 : http://www.androidpub.com/index.php?mid=android_dev_info&document_srl=1874345


Ping 날려 보기 Android

      try {

                   InetAddress ia = InetAddress.getByName("주소");

                   if(ia.isReachable(3000)==true) {

                   //3초안에 응답이 왔음. 

                   } else {

                  //3초안에 응답이 오지 않음. 

                   }

               } catch (UnknownHostException e){

               //Exception Catch

               } catch (IOException e) {

               //Exception Catch

               } catch (IllegalArgumentException e) {

               //Exception Catch

               }


Useful 잡다구리


windows Android Source Download Android


Multitasking in terminal (screen command) Android


1 2 3 4 5 6 7 8 9 10 다음