Press ⌘D (on Mac) or Ctrl+D (on Windows/Linux) in the editor to duplicate a selected block, or the current line when no block is selected.
Duplicate the current line or a selected block
Press ⌘D (on Mac) or Ctrl+D (on Windows/Linux) in the editor to duplicate a selected block, or the current line when no block is selected.