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
 Technical Support
 $ClassName$ not working in "Create Implementation"
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Laurent.V
New Member

3 Posts

Posted - Nov 17 2015 :  05:26:33 AM  Show Profile  Reply with Quote
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

Edited by - Laurent.V on Nov 17 2015 05:27:02 AM

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 17 2015 :  3:18:51 PM  Show Profile  Reply with Quote
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.

zen is the art of being at one with the two'ness
Go to Top of Page

Laurent.V
New Member

3 Posts

Posted - Nov 18 2015 :  03:07:11 AM  Show Profile  Reply with Quote
Thanks for your reply !
For now, I can manage to replace manually when needed, it's not the end of the world :)
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
19021 Posts

Posted - Nov 18 2015 :  5:07:12 PM  Show Profile  Reply with Quote
Good to know. Hopefully having VA creating the implementations saves you a lot more time than it takes to fix the formatting.

zen is the art of being at one with the two'ness
Go to Top of Page

Laurent.V
New Member

3 Posts

Posted - Nov 19 2015 :  02:51:56 AM  Show Profile  Reply with Quote
Indeed it does :)
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