Paste a multi-line Java String in Eclipse [duplicate]
Okay, I just found the answer (on Stackoverflow, no less). Eclipse has an option so that copy-paste of multi-line text into String literals will result in quoted newlines: Preferences/Java/Editor/Typing/ “Escape text when pasting into a string literal”