T O P I C R E V I E W |
DerChris |
Posted - Jan 15 2016 : 07:40:31 AM 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'. |
2 L A T E S T R E P L I E S (Newest First) |
DerChris |
Posted - Jan 16 2016 : 07:42:30 AM 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. |
accord |
Posted - Jan 15 2016 : 7:10:52 PM *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. |