You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was trying to change a file within a directory from CRLF to LF. I would use the little CRLF icon in the bottom footer of VS Code to change the EOL of the file from CRLF to LF and save the file. I closed the file and then opened again and the EOL characters were showing as CRLF again. THE ONLY way I was able to fix this was to go into File/Preferences/Settings and change the global EOL character to LF (\n). After that everything worked as expected.
What would be nice is if a user tries to switch the EOL of a single file from CRLF to LF (or some other variation) that differs from the global EOL setting, popup a prompt that simply lets the user know that the global EOL setting is X and do they want to change that setting instead of simply trying to change the setting for one file. It is not obvious that VS Code defaults to CRLF and that makes a big difference in many coding projects where EOL characters might matter.
The text was updated successfully, but these errors were encountered:
I was trying to change a file within a directory from CRLF to LF. I would use the little CRLF icon in the bottom footer of VS Code to change the EOL of the file from CRLF to LF and save the file. I closed the file and then opened again and the EOL characters were showing as CRLF again. THE ONLY way I was able to fix this was to go into File/Preferences/Settings and change the global EOL character to LF (\n). After that everything worked as expected.
What would be nice is if a user tries to switch the EOL of a single file from CRLF to LF (or some other variation) that differs from the global EOL setting, popup a prompt that simply lets the user know that the global EOL setting is X and do they want to change that setting instead of simply trying to change the setting for one file. It is not obvious that VS Code defaults to CRLF and that makes a big difference in many coding projects where EOL characters might matter.
The text was updated successfully, but these errors were encountered: