02-Editing/09-Duplicating_code.cs (8 lines of code) (raw):
using System;
namespace JetBrains.ReSharper.Koans.Editing
{
// Duplicating code
//
// <shortcut id="Duplicate Line or Selection">Ctrl+D</shortcut> (in text editor)
// 1. Duplicate single line
// Place caret on line below, select <shortcut id="Duplicate Line or Selection">Ctrl+D</shortcut>
using System.Collections;
// 2. Duplicating multiple lines
// Select entire class (Use expand selection!)
// Hit <shortcut id="Duplicate Line or Selection">Ctrl+D</shortcut> to copy entire class
public class SimpleClass
{
}
}