Fix indentation in Visual Studio when pasting from eBook

Every time I paste the code from the Adobe eBook Reader into Visual Studio it looks like the image below. The only way I know is to fix this to go down each line and manually insert / revert everything back in order. The original formatting does nothing (Edit> Advanced> Format Document)

Does anyone know how to fix indentation in this scenario?

thanks

I am guessing that I cannot post images.

https://dl.dropbox.com/u/416645/ugly.jpg

+2


a source to share


2 answers


This post explains the editor settings for XAML.



0


a source


Cntrl-KD is a shortcut for formatting source code, I use it all the time to clean up copy and paste.



0


a source







All Articles