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
http://www.jetbrains.com/idea/webhelp/joining-lines-and-literals.html
CSS is where I've needed this the most.
You start off with some code like this:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { | |
background-color: lightblue; | |
padding: 11px 10px 11px 38px; | |
margin: 0 0 0 0; | |
text-decoration: none; | |
border-radius: 3px; | |
-moz-border-radius: 3px; | |
-webkit-border-radius: 3px; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.box { background-color: lightblue; padding: 11px 10px 11px 38px; margin: 0 0 0 0; text-decoration: none; border-radius: 3px; -moz-border-radius: 3px; -webkit-border-radius: 3px; } |