Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Technical Support
 Incorrect formatting with 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
zeroes00 Posted - Jan 03 2011 : 07:41:27 AM
I have defined the VA Snippet for "Refactor Create Implementation" as following:

$SymbolType$
$SymbolContext$($ParameterList$) $MethodQualifier$
{
    $end$$MethodBody$
}


but it gets formatted with an extra tab before the function name like this:

struct MyClass {
    int myFunction(); // using Create Implementation for this...
};

// ...produces this:
int
    MyClass::myFunction() // there's an extra tab beginning the line
{
    
}
3   L A T E S T    R E P L I E S    (Newest First)
accord Posted - Jan 04 2011 : 09:23:10 AM
*wow* It does happen with VS2010. I've examined this, I've found that it is caused by "Format Selection". We call this feature of Visual Studio after "Create implementation", so the indenting will be fine, i.e. when creating the new implementation inside a namespace. You get the same result if you select the whole implementation manually and choose

Edit -> Advanced -> Format Selection

This explains why didn't it happen with older IDEs.
I guess it will be resolved eventually, hopefully in SP1.
zeroes00 Posted - Jan 03 2011 : 6:38:18 PM
I'm using Visual Studio 2010 version 10.0.30319.1 and Visual Assist X 10.6.1837.0
accord Posted - Jan 03 2011 : 4:36:32 PM
I wasn't able to reproduce your problem using VC6 or VS2008 SP1 and VAX 1837. What IDE and Visual Assist version are you using?

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