How can I delete and why our Ftp is adding space to my code?

  ftp, php, visual-studio-code, wordpress


Hope you guys are well. I was wondering if you guys know why every time I work with VS Code on PHP through FTP empty lines are added to the top and bottom of every line of code so the code ends up looking like this:

<?php if ($imagen_fondo) : ?>



    <div class="imagen_fondo">



        <img class="module__animation" src="<?php echo $imagen_fondo?>">



    </div>



<?php endif; ?>

We have tried different FTP extension and even if we work in different Hosts we always end up with the same issues.
And I was also wondering if you know any extension in VSC that can quickly format the code back to its original.

Thank you so much!!

Source: Ask PHP

LEAVE A COMMENT