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. |
|
|