this post was submitted on 01 Apr 2024
3 points (80.0% liked)
Visual Studio Code
93 readers
3 users here now
Everything VS Code
founded 2 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
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.
Cool I’ll look into why my beautifier isn’t working
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
Does a global replace of
\w+$
to nothing count as a beautifier?