Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Using multiple lines per MethodArgName

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

T O P I C    R E V I E W
Unearthly Posted - Mar 05 2011 : 5:09:53 PM
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.
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Mar 07 2011 : 4:21:13 PM
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

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000