views:

119

answers:

1

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! alt text

+4  A: 

I don't normally post things I've not personally used, but in this case, I was able to find an add-in that Jay Flowers wrote which seems to do exactly what you want. Currently, it can be located and downloaded here, with source in case you wanted to add more features or change its functionality.

John Rudy
Thanks, really good feature!But not automated ((Anyway, very helpful and convinient!
No, I don't believe it's automated. :( Like I said, I just sort of found it. :) I believe there are others out there -- maybe some of the big name paid VS add-ins have something similar.
John Rudy