Ok, this one has been driving me bonkers for ages and VS 2010 hasn\'t improved this. Say I have a variable like so
string szSql = @\"SELECT Foo, Bar F
For lengthy text, such as a large xml document, I always use the immediate window. Just type this in and hit enter:
System.Diagnostics.Debug.WriteLine(szSql)
and it will spit out the text with line breaks and without escape characters. I then copy from the immediate window.