Pasting text strings with \r and \n characters?

When selecting and copying all characters between the quotes in the string "Test\r\n" including the '\r' and '\n' characters, the '\r' and '\n' characters causes line breaks and line continuation instead of just appearing as the copy of the original string of characters as I expected.

I consider this to be a bug but would like to hear what others think before filing a bug report. I did a search and found lots of old reports on variations on this behavior, some of then were marked Fixed or Obsolete, so I couldn't really get a handle on how JetBrains intend for IDEA to work in this situation.

I do suspect that the current behavior is a tradeoff since IDEA doesn't store information along with text placed in the clipboard buffer that would allow more 'intelligent' pasting.

Hit me on the head if I'm out cycling (as they say here in Sweden)...

Best regards,
Lars Ugleberg

0
4 comments
Avatar
Permanently deleted user

There has been talk of this before, but I just ran into a problem like yours. All I want to do is paste the string "\n" into a bunch of places, but IDEA just pastes an actual return. This royally screws up the code. It should just paste what's on the clipboard.

0
Avatar
Permanently deleted user

Agreed.

Patrick Burleson wrote:

There has been talk of this before, but I just ran into a problem like yours. All I want to do is paste the string "\n" into a bunch of places, but IDEA just pastes an actual return. This royally screws up the code. It should just paste what's on the clipboard.

0
Avatar
Permanently deleted user

Please submit it into the tracker.

--
Valentin Kipiatkov
Chief Scientist, Vice President of Product Development
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

"Patrick Burleson" <pbur@yahoo.com> wrote in message
news:2726981.1075928795227.JavaMail.itn@is.intellij.net...

There has been talk of this before, but I just ran into a problem like

yours. All I want to do is paste the string "\n" into a bunch of places, but
IDEA just pastes an actual return. This royally screws up the code. It
should just paste what's on the clipboard.


0
Avatar
Permanently deleted user

Actually, it's already been submitted here:

http://www.intellij.net/tracker/idea/viewSCR?publicId=12697

which is marked as fixed in 858. Might want to reopen it.

0

Please sign in to leave a comment.