Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 color of method definitions
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

rodneys
New Member

7 Posts

Posted - Oct 06 2006 :  11:23:03 AM  Show Profile  Reply with Quote
A suggestion for the next version: different colors for method calls and method declarations. Consider a cpp-file with some method definitions:

void TestClass::method1() {
   method3() ;
   method4() ;
}

void TestClass::method2() {
   method5() ;
   method6() ;
}

It would be very nice to have the lines "void TestClass::method1()" and "void TestClass::method2()" colored or marked in some special way, so the reader can immediately see where methods start.

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - Oct 06 2006 :  3:39:37 PM  Show Profile  Reply with Quote
personally i use Document Method for this

having used VIM under UNIX for years, I am in the habit of having nice obvious comment blocks (with a line of star's at the top and bottom of the comment) at the start of each function for exactly this reason.

if you select different colours for types and functions in VA options, I have types in blue and functions in FF8000 (a shade of orange) then you get a contrast between the two which helps draw attention to these lines.

beyond this, we are unlikely to ever do this specific change.

zen is the art of being at one with the two'ness
Go to Top of Page

rodneys
New Member

7 Posts

Posted - Oct 06 2006 :  5:03:49 PM  Show Profile  Reply with Quote
I use comment blocks for methods only in the header file because they explain how the method should be used (explaining the arguments, constraints,etc.). I write implementation specific comments directly into the code in the cpp-file.
Do you create comment blocks in the header file *and* in the cpp-file? Lot of work to keep them in sync, isn't it?

I know, I could write separators like

   //-----------------------------

between the methods to make the code more readable. Actually, I hoped such things wouldn't be necessary anymore in the year 2006 :-)
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Oct 06 2006 :  8:30:54 PM  Show Profile  Reply with Quote
One might argue the outlining features of VS.NET and VS2005 offset the starts and ends of methods. Fairly minimally, though.
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19004 Posts

Posted - Oct 07 2006 :  12:21:40 PM  Show Profile  Reply with Quote
normally I only put comments into the cpp file, since that is where I spend nearly all of my time, and the comments are mainly for me.

zen is the art of being at one with the two'ness
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000