- Ctrl + H (Windows/Linux)
- click the
.*icon ("Use Regular Expression") - in the Find field, use:
^(\s)*$\n
- leave the Replace field empty
- click Replace All
^: start of line(\s)*: any whitespace (spaces, tabs)$: end of line\n: newline character