How to remove every other line in Visual Studio code
Problem
I was using FileZilla to download a PHP file from a server and when it finished transferring, I noticed that a space had been added in between every other line of code. It was really strange and I have no idea why it happened. I tried opening the file in a text editor and the spaces were definitely there, so it wasn't just a visual issue. I had to go through and manually delete all of the extra spaces before I could use the file. It was a bit of a hassle, but I was able to fix it eventually.
At first, I assumed that the strange spacing in the PHP file I downloaded from the server was just a visual bug with my text editor. However, when I downloaded a second PHP file and it had the same issue, I knew it was something more. The second file was over 2000 lines long, so manually removing all of the extra spaces was out of the question. I decided to search the internet for a solution and ended up finding some helpful information that I wanted to share in case anyone else encounters this problem.
Solution





.png)
Comments
Post a Comment