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
 VAX 1524: refactoring: move implementation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 20 2006 :  2:13:43 PM  Show Profile  Reply with Quote
When using "Move implementation to source file" it does some reformatting which is really unwelcome:
for functions with parameters it ALWAYS adds spaces before the parameters and before the closing bracket, but only in the source file.

class xz { void function1(int x) {}; }

becomes
void classxz::function1( int x ) {}


Can we please have this feature undone?

rhummer
Tomato Guru

USA
527 Posts

Posted - Jun 20 2006 :  2:21:34 PM  Show Profile  Reply with Quote
That is an autotext entry called "Refactor Create Implementation", just remove the spaces in that entry and you are set. I like the spaces but it's personal preference :)

Tools Engineer - Raven Software
VS2005 SP2/VS2008 SP1 - VAX <LATEST> - Win 7 x64


Edited by - rhummer on Jun 20 2006 2:22:09 PM
Go to Top of Page

Uniwares
Tomato Guru

Portugal
2321 Posts

Posted - Jun 20 2006 :  2:26:07 PM  Show Profile  Reply with Quote
Hey, thats wonderful.
But why is it then ignoring the leading and trailing empty lines in the autotext entry?
Go to Top of Page

feline
Whole Tomato Software

United Kingdom
18939 Posts

Posted - Jun 20 2006 :  3:32:53 PM  Show Profile  Reply with Quote
for me, it is not. i have just changed my autotext entry to have 3 leading blank lines before the function body, up from one, and i now get these three lines inserted.

i did notice in my initial experiments the effects were not always quite what i expected, but they tended to make sense.

zen is the art of being at one with the two'ness
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