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
 How can I set the refactor patterns?
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mordachai
Tomato Guru

USA
224 Posts

Posted - Jun 10 2008 :  2:21:27 PM  Show Profile  Reply with Quote
Refactor likes to add spaces in the wrong places relative to our coding standards.

We use a pattern like so:

if (bool-expr)
while (bool-expr)
for (for-expr)
function-call(arg1, arg2, argn);

So - no space between function name and argument list, but a space between keywords and a control-expression, space after every comma in an argument list, etc.

But I don't see any way to control these sorts of things in VA. Am I missing something, is there a back-door config file, or am I SOL?

Thanks

rhummer
Tomato Guru

USA
527 Posts

Posted - Jun 10 2008 :  2:25:59 PM  Show Profile  Reply with Quote
All the refactoring formatting is handled by VA Snippets. So any Refactor option that uses a Snippet is prefixed with Refactor in the Snippets window. Some options do share.

browse the reafactor feature site to see which Snippet is used by each refactor option. http://www.wholetomato.com/products/featureRefactoring.asp

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

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