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
 Snippet: Comment Symbols (Create Implementation..)
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DXer
Junior Member

13 Posts

Posted - Oct 05 2008 :  6:56:09 PM  Show Profile  Reply with Quote
Hi,

I'd suggest a new reserved string for comments in snippets, e.g:

// my comment, method does...
void methodFoo();

Many people declare methods with a single comment line above. If I wanted to do "CreateImplementation", I'd like a Snippet that that could not only put the method's implementation into the src file but also the comment (whatever form it has). That is, something like:

// $Comment$
$SymbolType$ $SymbolContext$( $ParameterList$ ) $MethodQualifier$
{
$MethodBody$$end$
}

By now I don't see any chance to get this working.

Thx in advance

EDIT: Ah there's something else: You have $SymbolVirtual$ and $SymbolStatic$, what about $SymbolInline$? I think this one's missing. =)

Edited by - DXer on Oct 05 2008 7:06:58 PM

feline
Whole Tomato Software

United Kingdom
18941 Posts

Posted - Oct 06 2008 :  07:07:48 AM  Show Profile  Reply with Quote
Have you tried editing the existing VA Snippet "Refactor Create Implementation" to add a comment? When I add a comment with the token $CommentText$ I am prompted to enter this comment when I trigger Create Implementation.

Personally I do not want this, since the dialog gets in the way of creating function bodies, but you can do this if you want.


$SymbolInline$, where are you trying to use this? If the function is in the header file, which is where many inline functions live, then you can see that it is inline, since the inline keyword is already present.

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