Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 How can I set the refactor patterns?

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
Mordachai Posted - Jun 10 2008 : 2:21:27 PM
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
1   L A T E S T    R E P L I E S    (Newest First)
rhummer Posted - Jun 10 2008 : 2:25:59 PM
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

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