I swear I’ve seen someone do this, but I can’t find it in the various lists of shortcuts.
Given:
String s = 'A very long ............................ String';
Is there an Eclipse shortcut to turn it into:
String s = 'A very long ............................ ' + 'String';
Yup – just hit return when your cursor is in the middle of the string.
Admittedly that puts the + at the end of the first line instead of the start of the second, which is irritating if your style guide demands the latter, but if you’re not fussy it’s great 🙂