See the little clipboard in the upper right hand corner? Drag a body of code that is contained in a block (just put it all into a do in order if you want to easily drag it), and move it to there. To paste, click and drag the clipboard to the location you want to paste it.