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

camainc picture camainc · May 7, 2011 · Viewed 9k times · Source

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

Answer

Hong picture Hong · Nov 20, 2011
  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.