#9 Adding, Deleting & Copying Lines

code

Adding, Deleting & Copying Lines

Press Shift+Enter to add a new line after the current line.
Press Ctrl+Alt+Enter to add a new line before the current line.
Press Ctrl+D to duplicate the current line.
Press Ctrl+C/X while nothing is selected to copy/cut the current line into the clipboard.
Press Ctrl+Y to delete the current line.

Mac Keys

Press Shift+Enter to add a new line after the current line.
Press Cmd+Alt+Enter to add a new line before the current line.
Press Cmd+D to duplicate the current line.
Press Cmd+C/X to copy/cut the current line.
Press Cmd+Backspace to delete the current line.

Further Reading

Related Tips

Blog Comments powered by Disqus.