Search code examples
c#groovyintellij-idearegion

create regions of code


I am coming from C# where we can create regions of code (Which I love) such as

#region MyCodeIsHere
//code
#endregion

So I can hide large chunks of code that work. Is there an equivalent way to do this in groovy?


Solution

  • Thanks to ofstream, seems I can do it in intellij which is what I am using: http://blogs.jetbrains.com/idea/2012/03/custom-code-folding-regions-in-intellij-idea-111/