Autoclose multiline strings (JEP 368)
See original GitHub issueTyping """ should automatically insert a new line, indent the cursor position to below the opening quotes, and finally autoclose with a triple quote
eg:
String foo = """|
autocloses/completes to (displaying spaces):
String foo = """
.............|
............."""
See https://openjdk.java.net/jeps/368 for more details.
@aeschli any pointers on the best way to achieve that?
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (4 by maintainers)
Top Results From Across the Web
Text Blocks (JEP 368). In Java writing multi line strings is…
Ease to write multi line strings · Remove escape sequence and enhance readability · Handle white spaces and indentation intelligently ...
Read more >Does Java have support for multiline strings? - ...
Multiline Strings are now supported in Java via Text Blocks. In Java 13 and 14, this feature requires you to set the ––enable–preview...
Read more >Java multi-line string, text blocks
This article shows you how to declare a multi-line string in Java, including the new Java 8 and Java 14 text blocks """....
Read more >Java 14 - Text Blocks (Second Preview)
JEP 368 – Text Blocks ... In Java 13, JEP 355 allows you to create a multiline string or you can say a...
Read more >Please, Java. Do Finally Support Multiline Strings : r/programming
In C#, @"" is a half-assed stab at multiline strings though; you can't enter ... Stringing out SQL queries is close to primitive...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

@rgrunber not worth doing imo
While you’re at it, can I request that you enclose the center region of text in a C-style indentation?
will turn into this after pressing
Enterkey:Where the center region’s indentation is based on the user-configured indentation size (1, 2, 4, or custom sized indents).
Otherwise, I think this would actually make the enclosures go a bit wild:
Would turn into this upon pressing
Enterkey: