Force newlines to be LF(used in Linux/Mac) instead of CRLF(used in Windows), so recommend Windows users to work in the WSL(Windows Subsystem for Linux) environment. Another way is to configure git and VSCode to convert CRLF to LF automatically:
The below forces git to convert CRLF to LF automatically:
git config --global core.autocrlf true
The below forces VSCode to use LF when creating new files: