Copy code segments without excess indentation