Select the code you want then Ctrl+Shift+L whichh will select the code that is same as you selected then press Delete