How to remove extra spaces in a document on Adobe Dreamweaver

How to remove extra spaces

While the document is open in Dreamweaver, press CTRL+F to load the Find & Replace dialog box. Do the search on the source code view.

Check the box “Use regular expression” and uncheck any other boxes.

Find: [\r\n]{2,}

Replace: \n

Hit “replace all