Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 $ClassName$ not working in "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
Laurent.V Posted - Nov 17 2015 : 05:26:33 AM
I like to have a space between the class name and the symbol name in my definitions:
int MyClass :: MyMethod()
{
   //...
}


However, the "Create Implementation" feature uses $SymbolContext$ that does not insert spaces and don't seems to be customizable.
So I tried to change the snippet for:
$SymbolType$ $ClassName$ :: $SymbolName$($ParameterList$) $MethodQualifier$


But $ClassName$ leaves a blank (everything else is fine):
int :: MyMethod()
{
   //...
}


Additional infos:
VA_X.dll file version 10.9.2076.0 built 2015.09.15
Visual Studio 2012 Professional (english) -> DevEnv.exe version 11.0.61030.0 Professional
4   L A T E S T    R E P L I E S    (Newest First)
Laurent.V Posted - Nov 19 2015 : 02:51:56 AM
Indeed it does :)
feline Posted - Nov 18 2015 : 5:07:12 PM
Good to know. Hopefully having VA creating the implementations saves you a lot more time than it takes to fix the formatting.
Laurent.V Posted - Nov 18 2015 : 03:07:11 AM
Thanks for your reply !
For now, I can manage to replace manually when needed, it's not the end of the world :)
feline Posted - Nov 17 2015 : 3:18:51 PM
This makes sense, I have put a note onto case:

case=9863

about this, which covers allowing other Snippet keywords in refactoring snippets.

For now, have you considered running a regular expression find and replace now and then? It should be easy to search for :: where there is a letter either side, and to replace it with " :: ", to help change the formatting of generated code.

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