Author |
Topic |
|
Hicks
Starting Member
1 Posts |
Posted - Jun 19 2008 : 8:27:30 PM
|
I'm using a modified version of the "Refactor Document Method" snippet for a project I'm working on. Rather than displaying the "ClassName::MethodName" as part of the comment using $SymbolContext$ I need to show "ClassName" on one line and "MethodName" on another.
Method name can be obtained using $SymbolName$, but I cannot find anything for the class name?
Currently I'm just copying the name before running the method and letting $clipboard$ handle it, but sometimes forget
Have I missed an obvious solution to this? Or is this not possible with the current snippets system? |
|
feline
Whole Tomato Software
United Kingdom
19021 Posts |
Posted - Jun 20 2008 : 09:01:23 AM
|
Currently you cannot do this, although we are looking to add a ClassName token to VA Snippets:
case=2050
For now you could try adding the token $ClassName$ to your Document Method snippet. Since this is an unknown token VA will prompt you for the value, so you can dismiss the dialog if you have forgotten to copy the class name and then re-trigger Document Method when you have copied it. |
zen is the art of being at one with the two'ness |
|
|
support
Whole Tomato Software
5566 Posts |
Posted - Jan 27 2009 : 10:03:48 PM
|
case=2050 is implemented in build 1715 New tokens are $NamespaceName$, $BaseClassName$, $ClassName$, $MethodName$, and $MethodArgs$. These should not be used in refactoring snippets, although some work in the Document Method snippet, depending on where it's invoked (declaration vs. implementation). |
Whole Tomato Software, Inc. |
|
|
|
Topic |
|