Thursday, July 30, 2009

Visual Studio - Can I get more pages for my code?

I have Visual Studio (2005 %26amp; 2008), and I program in C#. When I create a program, it often gets really long. Is there any way to put some of my functions that I no longer need to edit in a different page, then link to the page, to save space. It gets really frustrating scrolling down 1000s of lines.


Thanks in advance.

Visual Studio - Can I get more pages for my code?
a) Group similar functions in classes or modules





b) Use multiple files for your classes with the "multiple class" feature





http://www.devx.com/dotnet/Article/22603





Your functions shouldn't exceed about 50 lines each, just to keep them from being too complex. Imagine going away for about a year and coming back and trying to read your own long, long, long code - you'll lose your mind, I promise!





good luck.

flower pots

No comments:

Post a Comment