Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Avoid formatting code on paste Visual Studio 2015

When I copy and paste the code with Visual Studio, it will auto-format the pasted code (for example, it removes some extra spaces that I have intentionally added for clarity)

I just want that the code is pasted as I copied it, just like a normal text editor does. What I copy it's what I paste :)

Is it possible to just disable the auto-format on paste?

Thanks!

like image 376
raff Avatar asked Oct 31 '16 11:10

raff


1 Answers

You can turn off the Text Editor - C# - Formatting - General - Automatically format on paste option:

enter image description here

like image 148
Sergey Vlasov Avatar answered Sep 28 '22 07:09

Sergey Vlasov