Code regions
843785Mar 13 2009 — edited Mar 13 2009Hi guys,
I'm looking for some way to make my Java code look a bit tidier. I'd like to arrange it into what I'd call regions (as in Visual Studio/.NET), so I could have something like:
#region getMethods
public int getOne() { .. }
public int getTwo() { .. }
public int getThree() { .. }
#endregion getMethods
#region mathsMethods
public int add(int x, int y) { .. }
public int sub(int x, int y) { .. }
public int multi(int x, int y) { .. }
public int div(int x, int y) { .. }
#endregion mathsMethods
..and then I can say, minimise a particular region when I'm browsing through my code.
Can you tell me if there's any equivalent in Java? I'm using Eclipse if that helps.
Many thanks,
Ian