You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Mitch Claborn <mi...@claborn.net> on 2021/12/05 22:11:17 UTC

Line breaks in String literals

When editing Java source in NetBeans 12.5, if you paste in between a 
pair of double quotes some clipboard contents that contain line breaks, 
the editor breaks the String literal into multiple lines and puts the 
plus sign for string concatenation at the END of the lines.

If you press Enter in the middle of an existing String literal, it is 
broken into two lines with the plus sign for concatenation at the 
BEGINNING of the second line.

The disparity between location of the plus signs causes me extra work on 
occasion (when I've pasted in some stuff and then edit it later, adding 
my own breaks).

Does this bother anyone else?
-- 

Mitch

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@netbeans.apache.org
For additional commands, e-mail: users-help@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists