Bug 12931 - Text pasted into a literal string is escaped.
Summary: Text pasted into a literal string is escaped.
Status: RESOLVED FEATURE
Alias: None
Product: Xamarin Studio
Classification: Desktop
Component: Text Editor ()
Version: 4.0.9
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: master
Assignee: Mike Krüger
URL:
Depends on:
Blocks:
 
Reported: 2013-06-27 21:39 UTC by Adam
Modified: 2015-02-04 19:54 UTC (History)
3 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FEATURE

Description Adam 2013-06-27 21:39:21 UTC
I was pasting text that contained double-quote characters, into a literal string in the editor.
The editor escaped my quotations! Undesirable.

Copied text:
this is a " double quote

Insertion Point:
var myString = "a b c";
                 ^

Resulting line
var myString = "athis is a \" double quote b c";

Expected line
var myString = "athis is a " double quote b c";
Comment 1 Mikayla Hutchinson [MSFT] 2013-06-27 22:14:21 UTC
This is one of those things that you can argue either way TBH. But perhaps we could have an undo step that allows you do undo the escaping.
Comment 2 Mike Krüger 2013-06-28 00:50:38 UTC
Just undo - it's unescaping the string.
Comment 3 Adam 2013-06-28 19:44:13 UTC
Aha - odd - I did try 'undoing' and I thought it undid the paste rather than undoing the escaping - however, I just tried it again, and it does indeed undo the escaping. Must have imagined it - a bit trigger happy on the bug report!

Thanks team.
Comment 4 north 2014-12-29 22:30:23 UTC
Simply "undoing" isn't sufficient when I need to paste something over 50 times into a very long string. It's simply insane that there is no way to disable this maddening "feature".

Paste
Undo
Paste
Undo
Paste
Undo
Paste
Undo
Paste
Undo
Paste
Undo
Paste
Undo
Paste
Undo

This is madness. There NEEDS to be a way to turn this insanity off permanently. I'm getting ready to tear my hair out. I'm finding myself opening my source files in an ordinary text editor that doesn't try to be cute and clever more and more often.

This "feature" has me at the end of my tether. Xamarin is simply NOT USABLE without a way to disable this mess.
Comment 5 Mike Krüger 2014-12-30 01:43:29 UTC
there is another work around - paste/undo - copy the string again from inside the string.

Then paste again - this time it's not escaping.
Comment 6 north 2015-02-04 19:54:02 UTC
That is still a workaround for what still honestly looks like a bug. I swear this IDE gets more useless by the day. I don't know why people act like it's too much to ask for a "Be Actually Useful" option that just presents me with a simple text editor with basic syntax highlighting and debugging.

If I could set breakpoints and do debugging from TextPad I would drop this mess like a rock.