Atitit.ide code block Folding plugin Eclipse
1. User Defined regions #region ... #endregion plugin com.cb.eclipse.folding 1
2. If else for folding plug-in 1
3. turn on the set code folding function in eclipse ctrl+shift+numpad_divede ( keypad / number ) 2
4.2
1. User Defined regions #region ... #endregion plugin com.cb.eclipse.folding
Friends who have used Visual Studio know #region ... #endregion can surround a piece of code to make it available in the IDE This feature can improve the readability of code in a code block that is collapsed or expanded.
But ECLIPSE  ECLIPSE  Blocks of code that can be collapsed or expanded are only code blocks that are defined by the development language itself, such as JAVA  /* ... * /&NBSP, ECLIPSE  There is nothing to do.
And this plug-in com.cb.eclipse.folding [ download ] for those who used to put the code in a neat friend solved the problem. the section between //[start] and //[end]
Author :: Old Wow's paw attilax ayron, email:[email protected]
Reprint please indicate source: Http://blog.csdn.net/attilax
2. If Else forFolding Plugins
Veloec2.0.8 cant using in EC Luna
Lambda4jdt doesn't seem to be working.
Code folding (The collapse of a block of statements within a if/if else/switch/for curly brace) Com.cb.eclipse.folding_1.0.6.jar
This Luna ha Wannna can use. Perfm...>>java>edit>>folding, enable: Go OK LAN. If Eles for while and so on will collapse:
3. InEclipsethe Set code folding function is turned onCtrl+shift+numpad_divede ( keypad / number ) 4.
This folding is not a method of folding up . Energy Method view/function View
1. windows->perferences->general->editors->structured Text Editors
can be See Enable fold inch g option, tick-mark to use code folding function , but it is also set in a specific language.
2.
Windows->perferences->java->editors->folding
can be See Enable fold inch g option, tick-mark to use code folding function .
Second
Using shortcut keys
Below you can use the following shortcut keys in your JAVA CLASS 
Code folding shortcut keys, the default is: ctrl+shift+numpad_divede ( keypad / number ) ctrl+shift+numpad_ Multiply ( keypad * ) Notebook no keypad, then changed to: ctrl+shift+-ctrl+shift+=
Atitit.ide code block Folding plugin Eclipse