Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Snippet: Comment Symbols (Create Implementation..)

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
DXer Posted - Oct 05 2008 : 6:56:09 PM
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. =)
1   L A T E S T    R E P L I E S    (Newest First)
feline Posted - Oct 06 2008 : 07:07:48 AM
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.

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