Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

folding custom regions in IntelliJ idea (typeScript)

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?

like image 471
Wekerle Tibor Avatar asked Oct 14 '16 14:10

Wekerle Tibor


1 Answers

  • Go to Code -> Surround With.. ( or Ctrl + Alt + T)
  • Select region..endregion Comments

Refer this for more.

like image 189
Supun Wijerathne Avatar answered Oct 02 '22 01:10

Supun Wijerathne