Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I fold code for comment blocks inside method blocks?

How can I fold comment blocks inside method blocks to be folded (outlined), just like methods and regions, etc.?

like image 878
camainc Avatar asked May 07 '11 17:05

camainc


2 Answers

  1. Select the block that you want to hide
  2. Ctrl+M+H

This needs to be done only once. The block will become collapsible afterwards.

like image 110
Hong Avatar answered Nov 09 '22 16:11

Hong


Edit + Outlining + Start Automatic Outlining.

like image 28
Hans Passant Avatar answered Nov 09 '22 16:11

Hans Passant