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
 Document Method
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Michael Kelley
New Member

2 Posts

Posted - May 16 2007 :  7:26:21 PM  Show Profile  Reply with Quote
Document Method is a very useful feature. I'd like to request a feature that I think would improve this feature.

I'd like to have the functionality of ghostdoc (http://ghostdoc.12.forumer.com/viewforum.php?f=7&sid=3a8055b30bb8301378308542f247dcbd)
for C++ methods. Ghostdoc auto fills in comments based on the method name and its parameters. What about allowing users to write a .dll that is called when the "Document Method" is called? Functions in the user supplied .dll would receive a description of the method; you could probably use the classes in the Visual C++ code model as the instance types that are passed into the user .dll function (http://msdn2.microsoft.com/en-us/library/ms228770 VS.80 .aspx).
The user supplied .dll would just return a string to Visual Assist that contains the modified method documentation, and Visual Assist would insert that string as the method documentation. You could even pass in the previous comment block so that the user .dll could parse that original block and use information from that original block.

sean
Whole Tomato Software

USA
2817 Posts

Posted - May 16 2007 :  8:55:24 PM  Show Profile  Reply with Quote
You can make VA prompt you for text during document method (single line entry) by editing the Refactor Document Method autotext item (VAssistX | VA Options | Advanced | Suggestions | Edit Autotext | C++ | Refactor Document Method).

Add up to 8 words delimited by $ (for example: $summary$, $description$). When Document Method is invoked, VA will prompt for substitutions.

Edited by - sean on May 16 2007 8:56:10 PM
Go to Top of Page

James
Starting Member

USA
1 Posts

Posted - Jun 05 2007 :  4:06:22 PM  Show Profile  Reply with Quote
Like Ghostdoc in languages that support documentation comments the I'd like to see the Document Method menu option produce documentation like this:

/// <summary>
/// Handles the Load event of the Page control.
/// </summary>
/// <param name="sender">The source of the event.</param>
/// <param name="e">The <see cref="System.EventArgs"/> instance containing the event data.</param>

instead of this:

//////////////////////////////////////////////////////////////////////////
// Method: Page_Load
// FullName: com.Collectors_Society.AbandonSession.Page_Load
// Access: private
// Returns: void
// Parameter: object sender
// Parameter: System.EventArgs e
//////////////////////////////////////////////////////////////////////////
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19022 Posts

Posted - Jun 05 2007 :  4:55:06 PM  Show Profile  Reply with Quote
Simply edit the autotext entry "Refactor Document Method" to produce comments in the format and style that you want:

http://www.wholetomato.com/products/features/documentMethod.asp

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