Issue
In Visual Studio and Netbeans I am able to folding custom regions with line comments.
-visual studio style:
#region Description
Your code goes here...
#endregion
-netbeans style:
// <editor-fold desc="Description">
Your code goes here...
// </editor-fold>
My question is, can I folding custom regions in intellij idea?
Solution
- Go to Code -> Surround With.. ( or Ctrl + Alt + T)
- Select region..endregion Comments
Refer this for more.
Answered By - Supun Wijerathne