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
 Move implementation AND comment
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

chowette
New Member

6 Posts

Posted - Jul 13 2006 :  04:00:02 AM  Show Profile  Reply with Quote
It would be great if the move implementation can also duplicate the comment to the source file.

Maybe it can also use the Refactor Document Method auto text template?

jpizzi
Tomato Guru

USA
642 Posts

Posted - Jul 14 2006 :  12:23:54 AM  Show Profile  Reply with Quote
The idea so far is to provide small, individual choices that could be chained together so that you can get what you want accomplished, but we don't have to provide too many options about what to chain.

Joe Pizzi
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 15 2006 :  11:37:24 AM  Show Profile  Reply with Quote
there is a practical problem with copying the comment from the header, the two comment blocks will instantly start to go out of sync. before you ask, getting VA to keep the two comment blocks in sync is very unlikely to happen, there are just far to many ways this could go horribly wrong.

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

chowette
New Member

6 Posts

Posted - Jul 17 2006 :  02:59:02 AM  Show Profile  Reply with Quote
In general, I put a brief comment in the header, using
/// Brief comment.

and in the implementation file, using

/**
*Brief comment.
* More Detail here, like parameters and return ( what Refactor Document Method do)
*/

then, using JAVADOC_AUTOBRIEF set to YES in doxygen, I get a nice class description.

I think it's up to me to keep comments in sync.
What I need is a quick way to implement a method. This also imply commenting for doxygen.
Today I need a lot of document switchs to just cut and past some comments... This is just a big waste of time...

Thank anyway for VA !
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 17 2006 :  6:33:13 PM  Show Profile  Reply with Quote
you may want to add an autotext rule with the shortcut ///

i have 5 of them myself, so when i type triple slash i get to choose the one i want. i have a selection of doxygen format comment lines in the list, ideal for quickly entering short formatted comments.

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

chowette
New Member

6 Posts

Posted - Jul 18 2006 :  03:21:24 AM  Show Profile  Reply with Quote
Can you share those shortcut ?
I am just curious about them...
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 20 2006 :  5:27:55 PM  Show Profile  Reply with Quote
i dont seem to have them on this machine, so this is from memory. they are all keyed to the same shortcut "///"

///< $end$
/// \\brief $end$
/// \\param $end$
/// \\return $end$


and then i threw in a "dated comment block" one, which is useful now and then

//********************************************************
// %DAY% %MONTH% %YEAR%
// $end$
//********************************************************


once you see the idea the rest should be fairly obvious. it is just a matter of having some useful formatted blocks easily on hand.

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

chowette
New Member

6 Posts

Posted - Jul 21 2006 :  03:06:24 AM  Show Profile  Reply with Quote
Thanks, I got the idea.

I already have some keyed to "/**"


/**
* $end$
*/

/**
* \\brief $end$
*/

But I still have to cut-and-past the brief comment from the .h file.

As a side question, where can I get the list of all reconised variables like %DAY%, $DAY_02$, $FILE_BASE$ or $end$ ?
Go to Top of Page

support
Whole Tomato Software

5566 Posts

Posted - Jul 21 2006 :  12:08:26 PM  Show Profile  Reply with Quote
http://www.wholetomato.com/products/features/autotext.html?more=yes
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Jul 22 2006 :  11:37:13 AM  Show Profile  Reply with Quote
if your brief comment is on one line only then depending on your IDE and its settings CTRL-C with nothing highlighted will copy the entire current line, allowing you to do CTRL-C -> ALT-O -> CTRL-V, or some variant of this.

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