Highlight the range of lines from which you want to remove blank lines. Click . To remove all blank lines in the query, press Ctrl+A to select the entire query before clicking .