tools & libs/IDES

[eclipse] control block folding

  • -
반응형

이클립스에서는 메서드, 주석 등을 단위로 기본적으로 folding이 가능하다.

 

하지만 아쉽게도 if, while, for 등 제어문의 블럭을 단위로 하는 folding은 지원하지 않는다.

이때 coffee-bytes 라는 클러그인을 설치해보자.

 

https://github.com/stefaneidelloth/EclipseFolding/raw/master/com.cb.platsupp.site

 

stefaneidelloth/EclipseFolding

Provides an update site for the coffee-bytes code folding plugin - stefaneidelloth/EclipseFolding

github.com

 

설치 방법은 plugins 폴더 안의 com.cb.eclipse.folding_1.0.6.jar를 eclipse의 plugins 폴더에 집어 넣고 재시작하면 된다.

 

플러그인을 설치하고 다시 설정 페이지에 보면 folding 방식에 Coffee Bytes Java Folding이 추가되어있다.

 

 

Advanced 탭에서 Control Structures 를 선택하고 최소 라인 개수를 설정해준다.

 

 

설정 첫 화면에서 Enable Folding을 비활성화 시켰다가 다시 활성화 시켜주면 folding이 적용된다.

 

 

 

반응형
Contents

포스팅 주소를 복사했습니다

이 글이 도움이 되었다면 공감 부탁드립니다.