I’ve been using vscode for years now and recently I’ve been having this issue where there’s random extra spaces in lines even after html tags are closed. Anyone ever seen this problem before?

Please excuse the code I had to use. I’m building an email.

  • @friend_of_satan
    link
    English
    29 months ago

    White space problems are very common. Avoiding problems like this is one of the reasons to use a code formatter or beautifier, or pre-commit hooks that remove trailing whitespace.

    • @iamericandreOP
      link
      19 months ago

      Cool I’ll look into why my beautifier isn’t working

      • @friend_of_satan
        link
        English
        29 months ago

        One thing you can do is look at your code in a hex editor to see what that data is. There are a lot of white space characters that are not 0x20

    • @owenfromcanada
      link
      English
      19 months ago

      Does a global replace of \w+$ to nothing count as a beautifier?