Coming from Eclipse and having been used to duplicate lines all the time, it\'s pretty strange finding out that Xcode has no such function. Or does it?
I know it\'s
The solution by damien.flament works great and you may need set output to "Discard Output" see the pic below
P.S: I don't know how to comment his answer.