Paste a multi-line Java String in Eclipse
Posted
by
Thilo
on Stack Overflow
See other posts from Stack Overflow
or by Thilo
Published on 2010-01-29T03:18:16Z
Indexed on
2011/01/03
9:54 UTC
Read the original article
Hit count: 249
Unfortunately, Java has no syntax for multi-line string literals. No problem if the IDE makes it easy to work with constructs like
String x = "CREATE TABLE TEST ( \n"
+ "A INTEGER NOT NULL PRIMARY KEY, \n"
...
What is the fastest way to paste a multi-line String from the clipboard into Java source using Eclipse (in a way that it automagically creates code like the above).
© Stack Overflow or respective owner