Friday, 29 August 2014

Intellij tip - Joining multiple lines into one

There are times when you have some code with each statement on its own line, and you want to move it all onto one line.

CSS is where I've needed this the most.

You start off with some code like this:
And really want this:
Intellij has a very simple way to do this by using Ctrl-Shift-J - for more information, see