'7. Tips/Eclipse'에 해당되는 글 10건

  1. 2015.02.03 Useful Shortcuts in Eclipse
  2. 2015.02.02 Prevent symptom that debugging does not reflect latest source code
  3. 2012.05.08 Eclipse Color Themes
  4. 2011.11.21 선택된 파일의 상위 폴더를 탐색기로 열기
  5. 2011.08.17 Eclipse Galileo에서 C,C++ 개발환경 구축하기 - CDT, MinGW
  6. 2011.02.14 New Project 에 Android Project 추가하기
  7. 2011.02.10 [펌][안드앱콘1] 이클립스 개발툴의 활용 - 허광남 회색
  8. 2010.09.11 eclipse 에서 java 소스 보기
  9. 2010.07.20 java.lang.OutOfMemoryError: PermGen space
  10. 2008.10.10 자동 import 단축 키
2015. 2. 3. 00:04

Useful Shortcuts in Eclipse

Here are the shortcuts that is used very often  by me.


 Ctrl + Shift + O

 imports all classes in a file automatically

 Ctrl + O

 show code outline / structure

 Atl + Shift + F

 Correct indentation in a file

 Ctrl + I

 Correct indentation in a selection

 Ctrl + D delete a line

 Ctrl + 1

 Quick fix 

 Ctrl + B

 Build all. 

 Change this short cut to "Build Project" to save your time.

 F11 Debug
 Ctrl + F11 Run
 F3 Open declaration. Go to source.

 Alt + Left Arrow

 Go to back 

 Alt + Right Arrow 

 Go to forward 

 Ctrl + Shift + R

 Open resource like a file

 Ctrl + Shift + B

 Toggle break point

 Alt + Shift + J Add 
 Alt + Shift + E

 Show in navigator.

 Not default. Need to set this short cut by yourself

 Ctrl + K 

 Find next
 Ctrl + Shift + K Find previous 

 Ctrl + Shift + W

 Close others.
 Not default. Need to set this shout cut by yourself 

 Ctrl + H

 Show search dialog with various options

 Ctrl + / Toggle line comment 

 Ctrl + Shift + /

 Add block comment
 Ctrl + Shift + \

 Remove block comment 

 Alt + G

 Open implementation
 Alt + Shift + G Open super implementation


2015. 2. 2. 23:29

Prevent symptom that debugging does not reflect latest source code

Some times eclipse did not seems to launch applications well in debugging. 


You might experience like debugging did not reflect latest source code you just edited. Though you set the break point into the line you want, next step by pressing F6 for stepping over, break point hit the wrong line. 


Mostly this is caused by not saving the source codes. By default, eclipse does not prompt before launching the application though it's not still saved.


To prevent this mistake, I recommend to set the following two option!


1. Save automatically before build


Window > Preferences > General > Workspace


  • Check 'Save automatically before build' like the following:






2. Save required dirty editors before launching : Prompt



Window > Preferences > Run/Debug > Launching


  • Set an option to 'Prompt' like the following for 'Save required dirty editors before launching' option.



This trivial two options will reduce your complaint against eclipse!



2012. 5. 8. 23:23

Eclipse Color Themes

이클립스에 Color 테마를 제공하는 사이트 입니다. 


http://www.eclipsecolorthemes.org/


디폴트 칼라 테마에 식상한데 직접 손대기 귀찮으신 분은 위 링크에서 촉이 오는 스타일의 EPF 파일을 다운받아서 적용하시기 바랍니다. 



EPF 파일 테마 적용법은 아래 동영상 참고.


http://vimeo.com/19168132



2011. 11. 21. 22:38

선택된 파일의 상위 폴더를 탐색기로 열기

Visual Studio 의 Open Containing Folder (상위 폴더 열기) 기능을 이클립스에서도 사용할 수 있습니다. 자세한 내용을 아래 링크를 참고하시기 바랍니다.

 

Open the windows explorer with a file selected in eclipse..

 http://www.eclipsezone.com/eclipse/forums/t77655.html

2011. 8. 17. 04:35

Eclipse Galileo에서 C,C++ 개발환경 구축하기 - CDT, MinGW

adb.exe 를 윈도우즈에서 빌드하기 위해서 이클립스 CDT 환경을 활용하였습니다. 

참고: http://blog.jidolstar.com/677 
2011. 2. 14. 23:24

New Project 에 Android Project 추가하기

Window > Customize Perspective...

에서 Menu Visibility Tab 을 보면 Menu Structure 가 나온다. 해당 메뉴에서 원하는 아이템을 체크/해제하여 원하는 메뉴만 보이게 할 수 있습니다.


알면 아무것도 아닌것이 모르면 답답하답니다.
2011. 2. 10. 06:52

[펌][안드앱콘1] 이클립스 개발툴의 활용 - 허광남 회색

원본: http://www.androidpub.com/?mid=android_dev_info&page=11&document_srl=324500

제1회 안드로이드 앱개발자 컨퍼런스 

이클립스 개발툴의 활용 - 허광남


이클립스 단축키등 정리가 잘 되어 있습니다.
2010. 9. 11. 00:17

eclipse 에서 java 소스 보기

이클립스에서 java api 에 대해서 F3 키를 눌러 소스 바로 보기를 하려면 아래와 같이 합니다.

해당 Project > Java Resources: src > Libraries > JRE System Library

에서 rt.jar 파일 선택후 오른쪽 마우스 누른후, properties 선택

Java Source Attachment 에서 아래 그림처럼 Location Path 를 jdk 가 설치된 곳에 존재하는 src.zip 파일을 지정해 주면 됩니다.


편리한 환경은 생산성을 높여줍니다~!

2010. 7. 20. 23:38

java.lang.OutOfMemoryError: PermGen space

Why am I getting a java.lang.OutOfMemoryError: PermGen space?


The default maximum PermGen space set by your JRE may be too small. You can increase the maximum PermGen size by launching WTP with VM argument: -XX:MaxPermSize=128m

Note that this issue only appears to happen using a Sun Java Runtime. Others runtime environments do not seem to have this issue.


http://wiki.eclipse.org/WTP_FAQ#Why_am_I_getting_a_java.lang.OutOfMemoryError:_PermGen_space.3F


라고 이클립스 위키에 정리되어 있다...난 또...이클립스가 원래 그런줄 알았네... ^^;

Sun Java Runtime 만 그렇다니... 헐...


해결책은 이클립스 바로가기에 


 -vmargs XX:MaxPermSize=128M

를 추가해주자. 전체로는 아래와 같은 형태가 될 것이다. ini 를 고치는 방법도 있을텐데..그건 skip. ^^


D:\eclipse-java-galileo-win32\eclipse\eclipse.exe -vmargs XX:MaxPermSize=128M


2010-7-22일 내용 추가


위 내용을 수정한 후에는 PermGen 으로 인해 죽는 현상은 발견되지 않았다. 하지만 android 소스를 받기 위해서 EGit 를 사용할 때면 자주 오류가 발생하곤 했다. 이를 해결하는 방법은 안드로이드에서 소개한 내용을 이용하면 된다.


eclipse.ini 파일에서 아래처럼 되어 있는 부분을


-Xms40m 
-Xmx256m
-XX:MaxPermSize=256m


 다음과 같이 수정한다.


-Xms128m 
-Xmx512m
-XX:MaxPermSize=256m


이렇게 한 후에, 혹시 수행이 이클립스 자체가 수행되지 않으면, 아래와 같이 java 의 실행 화일을 javaw 로 지정해 주면 된다.


-vm c:\Java\JDK\1.5\bin\javaw.exe


참고: 여기저기~



2008. 10. 10. 09:40

자동 import 단축 키


모든 클래스 임포트 : Ctrl + Shift + O (java 파일에 사용한 모든 클래스가 각각 임포트)
개별 클래스 임포트 : Ctrl + Shift + M (해당 클래스 임포트)

출처 : http://blog.empas.com/dpwisdom/13089630