- Open your code in Visual Studio Code
- From Edit Menu, select Replace or use a shortcut key (command + Option + F on Mac or Ctrl + H on Windows)
- In the find box type \n\n
- In the replace box type \n
- Make sure the ‘Use Regular Expression’ is selected
- Select the ‘Replace All’ button

I hope you like this Post, Please feel free to comment below, your suggestion and problems if you face - we are here to solve your problems.