Code folding in Eclipse
Eclipse supports code folding.
Go to workbench preferences -> General -> Editors -> Structured Text Editors, and check the "Enable folding" box.
Then go to workbench preferences -> Java -> Editor -> Folding, and adjust your folding preferences.
The <editor-fold
and #region
can be used as a block folding wrapping anything you want, including not just a function or a comment but both or even multiples functions, comments, variables, etc.
Eclipse does not has such functionality. I am using Eclipse Neon and still missing this.
Windows->Preferences->(C/C++)->Editors->Folding
(C/C++) will change based on the language you are using. Generally each language plugin will have its own folding options