I want some automatic code folding for if(),try() etc.

It should be some code editor feature (like one in VS for methods, etc).

If I have this:

-        public frmMain()
|        {
|           InitializeComponent();
|           if (true)
|           {
|                try ()
|                {
|                }
|                catch()
|                {
|                }
|            }
|        }

I want to get this:

-        public frmMain()
|        {
|           InitializeComponent();
-           if (true)
|           {
-                try ()
|                {
|                }
-                catch()
|                {
|                }
|            }
|        }

Even Notepad++ can do this!

Edit
Report