Back

Explore Courses Blog Tutorials Interview Questions
0 votes
1 view
in Java by (4k points)

I want to use regions for code folding in Eclipse; how can that be done in Java?

Example usage in C#:

#region name

//code

#endregion

1 Answer

0 votes
by (46k points)

There's no such standard equivalent present. A few IDEs - Intellij, for example, or Eclipse - can wrap depending on the code patterns involved (constructors, imports etc.), but there's nothing like #region.

Related questions

Welcome to Intellipaat Community. Get your technical queries answered by top developers!

28.4k questions

29.7k answers

500 comments

94k users

Browse Categories

...