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][1] )
This is very practical opening files from servers to edit/save instead of "Vim" editor
when you open the file in Notepad++ Double 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
