jwcolby
jwcolby at colbyconsulting.com
Fri Jun 15 11:03:26 CDT 2007
I like regions for organizing classes. It just works for me to have my classes organized such that things are in the same places down through the class. I set up this regions structure: #Region "Header" #Region "Variables" #End Region #Region "Constants" #End Region #Region "Enums" #End Region #Region "Structures" #End Region #Region "Events" #End Region #Region "Win32API" #End Region #End Region #Region "Properties" #End Region #Region "Methods" #End Region #Region "Exceptions" #End Region Thus I have a header region, with subregions for grouping variables, constants etc. Below the header region I have a handful of regions to group properties, methods and exceptions. Once I set up my regions, I inserted it into the snippets so that I could just insert a regions snippet first thing after I define a blank class. I can also insert a regions snippet at the top of the class to "retrofit" an existing class and clean it up. Comments welcomed. John W. Colby Colby Consulting www.ColbyConsulting.com