Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to minimize code area in Eclipse?

Tags:

There is a nice feature in Visual Studio: you can create special code areas which can be minimized just as class methods in Eclipse are minimized. Like:

#region

//some code

#endregion

Is there a way do make such pleasant feature in Eclipse?

like image 726
Stella Avatar asked Dec 20 '08 21:12

Stella


People also ask

How do you minimize in eclipse?

Using Ctrl + M. This is the key binding for a command that will toggle the currently active part between its 'maximized' and its 'restored' (i.e. normal) states.

What does Ctrl space do in Eclipse?

Type the first few letters of the class, method, or variable you want. Then hit the Ctrl + Space key combination. This brings up a list of autocomplete recommendations along with method signatures, variable types, and more.


2 Answers

It's called "collapse all", click on the editor view that you want to collapse all your methods in go to help> key assist...> double click "collapse all">, everything is collapsed

like image 187
Mitch Avatar answered Oct 21 '22 19:10

Mitch


Click on ' - (minus)' symbol on the side of the editor, Right click on minus symbol , Go to folding / Collapse All

Keyboard shortcut : Ctrl+Shift+NumbPad_Divide

like image 28
arthi Avatar answered Oct 21 '22 18:10

arthi