Folding code in MonoDevelop

Perhaps this is not the correct place to ask this, but since MD is the default code editor for Unity3D I thought I might as well try.

I remember seeing in code from other peoples projects that it is somehow possible to 'fold' pieces of your code manually - with which I mean that it's not just the function Foo () {...} which get's folded but that it's possible to fold a piece of code inside a function. For instance:

function Update () {

    foo = bar;

    {...} //folded bit

    OtherStuff();

}

Am I right in remembering this is possible? Because I'm currently writing a script where this would be very helpful and I cannot seem to find out how to do this anywhere in MD's manual, google, this site or the forum. Thanks in advance.

Note that, for some reason, MonoDevelop as shipped with Unity, does not have code folding enabled by default.

For C#, this old forum post explains how to enable it, and I quote:

Tools
Options
Text Editor
General
Enable code folding

Here is a screenshot (I found in yet another post):

Enable Code Folding

Once done, you can fold any blocks, including C#'s awesome #region blocks:

Code folding

You can use #region name and #endregion preprocessor directives

http://msdn.microsoft.com/en-us/library/9a1ybwek(VS.71).aspx

Do it manually.
preferences → general->enable folding

Ctrl + Shift + A for folding and unfolding