Expand or Minimize code snippet in eclipse

6

It would be possible to minimize orexpand justasnippetofcodeinsidea{...},exampleblock using the eclipse IDE?

    
asked by anonymous 12.11.2018 / 13:40

3 answers

0

Master, good evening.

As I researched, there really is no native functionality for what you want.

Maybe the closest you find it would be something like C # Regions .

As far as I know, our dear Java does not have the same feature. However, I have found an Eclipse IDE plugin that can help. This is the Coffee Bytes , but it is discontinued, so use is on your own and risk.

Source of my research: How to Create a Region in eclipse like Visual Studio

    
18.11.2018 / 06:08
0

If the US editor is in English the option is: Windows - > Preferences - > Java - > Editor - > Folding

To minimize all code snippets: Ctrl + Shift + /

To expand all code snippets: Ctrl + Shift + *     

21.11.2018 / 14:40
-2

You can put a scope around what you want to minimize.

{

//AQUI VAI O QUE QUER MINIMIZAR

}

Note that on the left side, near the row count, a button with the "-" will appear for you to minimize.

    
16.11.2018 / 19:12