I use Notepad++ to edit my bash (.sh) scripts by connecting to the server by WinSCP
(To set up WinSCP editor to Notepad++ : https://winscp.net/eng/docs/ui_editor_preferences )
This is very practical for opening files from servers to edit/save instead of "Vim" editor.
When you open the file in Notepad++, double click-click on the 7th column at the status bar at the bottom and select "Unix(LF)".
Also, you have to change the 8th one by Encoding -> Encode in UTF-8 in the top bar.
