I use Visual Studio Code as my preferred text editor and I have ran into a problem with regards to the formatting. I have copied code from one file and pasted into another, however when I have pasted the code VSC has placed a blank line between every line with code.
It is quite a big file so I am hoping there is a way to identify all the blank lines at once and remove them?
This is how I want the code to look:
<div>
<h1></h1>
<p></p>
</div>
however, on paste it now looks like this:
<div>
<h1></h1>
<p></p>
</div>
I have looked online but have been unable to find any direct answer to this :(
Follow the steps
^$\n
.NB: leave the replace box as blank