How to remove extra line break from editor using search and repalce method

You need to set search mode as regular expression:

Search for : [\r\n]{2,}
replace with :\n