Community
Participate
Working Groups
Build ID: I20090227-1422 I am always having "Escape text when pasting into string literal" enabled. However, sometimes I paste some text that is already escaped (e.g. from another String) and it gets escaped for a second time. Please consider an option where text is not escaped if its already in escaped form. E.g. Hello \n World becomes Hello \\n World which is wrong. More information:
I think guessing whether a string is already escaped would be even more confusing. If you don't want the string to be escaped, simply paste it outside of a string literal (surround with " later, or temporarily add a " to close the current string).
Agree with Markus. Plus: you can toggle the smart insert mode (Ctrl+Shift+Insert) before pasting.
(In reply to comment #1) > I think guessing whether a string is already escaped would be even more > confusing. If you don't want the string to be escaped, simply paste it outside > of a string literal (surround with " later, or temporarily add a " to close the > current string). > That is my current (annoying) work around.
Duplicate of bug 72869. I like the proposal "unescape string when you copy from it." How about a quick fix to escape/unescape one level?
(In reply to comment #4) > Duplicate of bug 72869. Nope. This bug is about pasting in a a string literal. bug 72869 is about copying from a string literal.
See also bug 332205.
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet. If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant. -- The automated Eclipse Genie.