I have a very weird problem which gives me sort of frustration.. I am currently using JetBrains Rider (v 2021.2 on Windows), and I develop also some Bash scripts that must be run in a Linux system. Every time I create a new bash file, it seems like that the IDE automatically inserts some invisible control chars at the very beginning of the file... It cannot be seen in the IDE, but if I change to a Linux system, and print the file e.g. with "more" I can see that there are indeed some chars at the beginning... which causes later on errors.
This happens only with Rider, if I create e.g. a shell script with Visual Studio Code, it just works as expected...
Of course I checked that the line ending is LF (this is also the default setting in the IDE for shell scripts). For better illustration here are 2 screenshots (the first one showing a new file created in Rider, which looks good here):
And here is the second screenshot which shows how the file looks in a Linux bash environment printed with "more" (You can see that there is some invisible char the beginning that looks like a space):
Any idea what can be the reason for that?!
I am not sure if this is the right topic here, but I didn't found any topic for the Rider IDE.