The closest solution I know of is to bring array elements onto as few lines as possible. Highlight the lines you want to bring in, then Ctrl-Shift-J . To avoid having the formatter distribute array elements one per line again, put