Learn how to use multiple selections.
On OS X CTRL + SHIFT + UP/DOWN will create a new cursor on the next line up or down. And you can CMD + LMB-click to insert a new cursor anywhere.
I cannot count how much time this feature saves me.
On OS X CTRL + SHIFT + UP/DOWN will create a new cursor on the next line up or down. And you can CMD + LMB-click to insert a new cursor anywhere.
I cannot count how much time this feature saves me.
Aside from being able to simultaneously write in multiple places, you can copy-paste across multiple cursors; highlight 5 variables, copy, create 5 new lines with cursors, paste. Each line will have one of your copied variables. Try using Find with regex and alt+enter to select all matches with separate cursors.
Many plugins also support or add onto this feature. I love TextPastry to easily insert number ranges and patterns across multiple cursors.
CMD+SHIFT+D is handy, too; it duplicates your current line.