tags:

views:

1098

answers:

4

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?

+1  A: 

If you mean by minimizing folding, then I don't think Eclipse has the folding option you want. When I look at the eclipse folding options it tells me that it can fold

  • Comments
  • Header Comments
  • Inner Types
  • Members
  • Imports

If you don't mean folding, then I'm sorry for the confusion.

Stefan Schmidt
+3  A: 

The term you're looking for is code-folding. A cursory Web search turns up the Coffee-Bytes plug-in to add folding support beyond the built-in options. Reviews are mixed.

Rob Kennedy
A: 

you can force it by capsulating the code betwen {} keys. The code will not compile but for writing is good

A: 
  • Heres how I do it:

    1. Create an empty class called Blank
    2. Use this outline for your code:

    Blank b = new Blank() { public void myCode() { /Insert code here/ } }; b.myCode();

drdanielfc
Seriously? That's nasty....
skaffman