Sublime Text, remove line breaks and all whitespaces on the next line

How to remove line breaks and all whitespaces on the following line with Sublime text editor?
Do you want to remove empty lines between HTML code or download Youtube video subtitles and connect them to one text? Check those time-saving techniques

  1. Press CTRL+H to use Search and replace
  2. Click Regular Expression Alt + R near Find input
  3. Enter \n\s+ in the Find field and live empty Replace field
  4. Click Replace all

remove-linebreaks-with-sublimetext

Published