- Place the caret on the line, to which the other lines should be added.

- Sequentially press
Ctrl+Shift+J
keyboard shortcut, until all
fragments are joined in a single line.


You can select the lines and press Ctrl+Shift+J to obtain the same result.
- Select the lines with string literals that should be joined.
- Press Ctrl+Shift+J keyboard shortcut. All redundant characters (spaces, quotes, and plus signs) are gone.
Examples
Joining a list of parameters:

Joining commented lines:

