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
 Incorrect formatting with create implementation
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

zeroes00
Junior Member

17 Posts

Posted - Jan 03 2011 :  07:41:27 AM  Show Profile  Reply with Quote
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
{
    
}

Edited by - zeroes00 on Jan 03 2011 07:42:36 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 03 2011 :  4:36:32 PM  Show Profile  Reply with Quote
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?
Go to Top of Page

zeroes00
Junior Member

17 Posts

Posted - Jan 03 2011 :  6:38:18 PM  Show Profile  Reply with Quote
I'm using Visual Studio 2010 version 10.0.30319.1 and Visual Assist X 10.6.1837.0
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 04 2011 :  09:23:10 AM  Show Profile  Reply with Quote
*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.

Edited by - accord on Jan 04 2011 09:46:27 AM
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