Control formatting of strings split into multiple lines

Kevin Rahe <[email protected]> Mon, 30 Mar 2026 11:19:19 -0400
Newsgroups gmane.comp.java.ide.netbeans.user
Message-ID <[email protected]>
I've used NetBeans for developing Java applications for a couple decades 
now. In the code formatting options I had always configured the editor 
to format strings split by pressing Enter in the middle of them to put 
the plus-sign at the end of the original line and begin the continued 
line with a double-quote. However, with later versions of NetBeans (23, 
25 and 28) I can no longer seem to find a setting that lets it format 
split strings this way. Instead, it puts the plus-sign at the beginning 
of the continued line. I have hundreds of thousands of lines of code 
formatted the "old" way and aim to keep any new code consistent with the 
existing code. However, this now takes a fair amount of manual fiddling 
every time I split a string. (I write a lot of embedded SQL code so I'm 
doing this a lot.) Is there any way to tease the newer versions of 
NetBeans into working the way I want them to? Or do I need to create a 
new feature request for this? Thank you.

Kevin


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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