How do I merge the multiple empty lines into a single one in the Editors view?

To merge the multiple empty lines into a single one in the Editors view:

  1. Press Ctrl+F.

    The Find/Replace dialog box appears.

  2. Enter the expression ^\s*\n in the Find textbox.
  3. Enter the expression \R in the Replace with dialog box.
    Figure 1. Merging Multiple Blank Lines into One

    Merging Multiple Blank Lines into One

  4. Click Replace All .

The editor merges the multiple blank lines into one for each appearance.