I use Windows 10 home and I usually use Visual Studio Code (VSCODE) to edit Linux Bash scripts as well as PHP and JavaScript.
I don\'t develop anything dedicated for
To convert the line ending for existing files
We can use dos2unix in WSL or in your Shell terminal.
Install the tool:
sudo apt install dos2unix
Convert line endings in the current directory:
find -type f -print0 | xargs -0 dos2unix
If there are some folders that you'd want to exclude from the conversion, use:
find -type f \
-not -path ".//*" \
-not -path ".//*" \
-print0 | xargs -0 dos2unix