Is there any way to make a "safe" paste into Visual Studio (C#) of HTML code? If I try to paste something like
<div class="user-info"><div class="user-action-time">answered <span title="2010-09-16 02:23:16Z" class="relativetime">21 mins ago</span>
into my code, C# will cry. Using the @ operator doesn't help us, either.
Is it possible to make a special paste in Visual Studio (2010) or Resharper?
Thanks
You can use SmartPaster Extention.
After install Right click -> Paste As... -> Paste as @String
Download links
Use @, select pasted text and replace "
with ""
in the selection. That's what I do when I paste text containing quotes.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With