Copy line up/down

Quickly duplicate the current line or selection.

I often use this to duplicate (and then rewrite) patterns in my code such as variable declarations or conditionals.

Windows/Linux: altshiftup/down

Mac: optionshiftup/down