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
 Format after Paste switchOff ignored
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

DerChris
New Member

4 Posts

Posted - Jan 15 2016 :  07:40:31 AM  Show Profile  Reply with Quote
After pasting code, it is reformatted by Visual Assist, no matter if "Format after Paste" is set or not.

Happens on:

VA_X.dll file version 10.9.2076.0 built 2015.09.15
DevEnv.exe version 14.0.24720.0 Community
msenv.dll version 14.0.24720.0
Comctl32.dll version 6.10.7601.18837
Windows 7 6.1 Build 7601 Service Pack 1

Language: C++


Example:

///////////////
/*
bla bla
*/
//////////////


will be reformatted to:

///////////////
/*
bla bla
*/
//////////////

Edit: this post was also automatically reformatted. Consider there were 1 tab or 4 spaces before 'bla bla'.

Edited by - DerChris on Jan 15 2016 07:42:32 AM

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jan 15 2016 :  7:10:52 PM  Show Profile  Reply with Quote
*wow* This surprises me. Since I have always been using this setting in Visual Assist, I wasn't aware that from VS2013, Visual Studio can also does this. If you are using VS2013 or later, you can disable this feature here:

Tools -> Options... -> Text Editor -> C/C++ -> Formatting -> General -> Format after paste

When I disabled Visual Assist via

VAssistX -> Enable/Disable Visual Assist X

the formatting was still happening. Disabling Visual Assist via this quick method is a good way to check whether something is happening because of Visual Assist or not.
Go to Top of Page

DerChris
New Member

4 Posts

Posted - Jan 16 2016 :  07:42:30 AM  Show Profile  Reply with Quote
yep, thank you... this did it for me.
Also worth to have a look here (in VS 2015) if you encounter odd formatting behaviour. Lots of stuff to adjust here.
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