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
 Technical Support
 Using multiple lines per MethodArgName
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Unearthly
Starting Member

1 Posts

Posted - Mar 05 2011 :  5:09:53 PM  Show Profile  Reply with Quote
I'm editing the "Refactor Document Method" snippet in C# and not sure if it's possible to do what I want. I want to create a C# XML comment where it will print 3 lines for each method argument (see below). Assuming this isn't currently supported, one feature that would enable it would be a newline variable so I could insert newlines into a single parsed line.

Example possible snippet:

/// <param name="$MethodArgName$">$newline$/// $newline$/// </param>


Desired end result:

/// <param name="$MethodArgName$">
/// 
/// </param>


So, can I do this now? And if not, could it be added?

Thanks.

feline
Whole Tomato Software

United Kingdom
18950 Posts

Posted - Mar 07 2011 :  4:21:13 PM  Show Profile  Reply with Quote
Unfortunately no, VA cannot currently do this. It is an interesting idea, I am just not sure how many of our users would use this.

Looking at this, in theory, it should be fairly easy to write an IDE macro to update the output of VA's Document Method. Just keep selecting lines, going up, until you reach a line that is not a comment.

Then run a find and replace over the selection.

If you wanted to try and do this, this IDE macro might give you some useful pointers:

http://support.wholetomato.com?W444

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