이클립스에서 코드 접기

이클립스에서 개발중 불편한점이 또 하나 생겼습니다.
Visual Studio에서는 코드가 길어질 경우 #region #endrgion 을 사용하여 접을수가 있는데요..
이클립스에서는 기본적으로 이러한 기능을 제공하지 않네요.

검색해 보니 이와 유사하게 지원하는 플러그인이 있어서 적용해 보았습니다.

  1. eclipse-folding-plugin.tar.gz 를 다운로드하여 이클립스 폴더에 압축 해제
  2. 이클립스 재시작
  3. "Windows->Preferences"
  4. "Java->Editor->Folding"
  5. "Enable folding" 체크
  6. "Select folding to use:" 옵션에서 "Coffee Bytes Java Folding" 선택
  7. "General"탭에서 "General Fold Setting:" 옵션에서 "User Defined Regions" 체크
  8. "User Defined Regions"탭에서 General Settings" 옵션 수정
  9. 이클립스 재시작
  10. 코드에서 //region //endregion 사용

eclipse-folding-plugin.tar.gz  Download

region1

region2

region3

 

 

출처 : http://kosiara87.blogspot.in/2011/12/how-to-install-coffee-bytes-plugin-in.html

 

 

댓글 남기기