Search code examples
intellij-idearegionfoldingcode-foldingcode-regions

Can I configure IntelliJ Idea to recognize custom code folding regions designation?


I like c# #region...#endregion facility a lot (some people say that's a bad habit but let's not discuss that). I miss it a lot when coding other languages. The obvious way to "add" it to other languages is to use special-formed comments the editor would understand. I've managed to set up Kate to support //#region...//#endregion for Java/Scala code, alike feature is not a problem to achieve with NetBeans (here is how). Can I do this with IntelliJ Idea 11?


Solution

  • This feature is planned for IDEA 11.1 that will be released in late Q1, 2012:

    IntelliJ IDEA 11.1 will support custom folding using NetBeans and Visual Studio style comments.