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”
More Related Contents:
- Mac Debug Step Into
- Scanner and validating answers like a dictionary in Java
- How to use an existing database with an Android application [duplicate]
- Eclipse can’t find XML related classes after switching build path to JDK 10
- Android Eclipse – Could not find *.apk
- Warning – Build path specifies execution environment J2SE-1.4
- How to create war files
- How do I add a Maven dependency in Eclipse?
- Create a Maven project in Eclipse complains “Could not resolve archetype” [duplicate]
- A Java API to generate Java source files [closed]
- Eclipse command line arguments
- Eclipse – java.lang.ClassNotFoundException
- Unreachable code error vs. dead code warning in Java under Eclipse?
- “Could not find the main class” error when running jar exported by Eclipse
- Where to put a textfile I want to use in eclipse?
- Eclipse error … cannot be resolved to a type
- Importing JSON into an Eclipse project
- Eclipse Java; export jar, include referenced libraries, without fatjar
- error: unable to load installed packages just now
- Should source code be saved in UTF-8 format
- Eclipse RCP: Actions VS Commands
- Eclipse: change name of existing package with classes inside
- How to convert jar to OSGi bundle using eclipse and bndtools
- Visual swing in Eclipse
- How does Eclipse actually run Junit tests?
- java.lang.ClassNotFoundException: org.springframework.web.servlet.DispatcherServlet error
- Easiest way to upgrade eclipse 3.7 to 4.2 (Juno)
- How to specify jdk path in eclipse.ini on windows 8 when path contains space
- PKIX path building failed in Eclipse
- Including external jar-files in a new jar-file build with Ant