Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

create collapsible code block eclipse

Tags:

eclipse

To make my code clean and tidy on eclipse, I wonder if it is feasible to code surrounded by Any tag to be able to retract as a function. I use eclipse "Juno" for android development.

like image 850
Setsuna Avatar asked Aug 20 '12 11:08

Setsuna


People also ask

How do you collapse a block of code in Eclipse?

To enable code folding, go to the Folding Preferences page, accessible from Window | Preferences | PHP | Editor | Using Code Folding . If Code Folding is enabled, minus signs will appear in the Annotation Bar next to code blocks which can be folded.

What is text folding?

Code or text folding, or less commonly holophrasting, is a feature of some graphical user interfaces that allows the user to selectively hide ("fold") or display ("unfold") parts of a document. This allows the user to manage large amounts of text while viewing only those subsections that are currently of interest.

How do I collapse code in IntelliJ?

Expand or collapse code elements To collapse or expand all code fragments, press Ctrl+Shift+NumPad - / Ctrl+Shift+NumPad + . IntelliJ IDEA collapses or expands all fragments within the selection, or, if nothing is selected, all fragments in the current file, for example, all methods in a file.


1 Answers

Yes, you can use the plugin "Coffee Bytes Code Folding".
With Indigo or Juno, you might need to grab the latest version of that plugin at "this page" (or google "com.cb.eclipse.folding_1.0.7.jar" for Juno-compatible version).

You will find all the illustrations in the SO question: "How to use Coffee-Bytes code folding":

custom folding region

like image 167
VonC Avatar answered Oct 17 '22 18:10

VonC