The current settings menu for line-ending-selector is fairly flexible, allowing users to default to either UNIX-style LF line endings, or Windows-style CRLF line endings for new text files. However, I think we can do better:
Regardless of default line-ending value, start new UNIX-specific files in LF mode (*.sh, *.bash, .profile, etc.)
Regardless of default line-ending value, start new Windows-specific files in CRLF mode (*.bat, *.cmd, *.ps1, *.vbs, *.cs, *.fs, etc.)
This way, users can be sure to use an appropriate line ending format for critical file types, while using their preferential default of LF/CRLF for non-specific files (*.txt, *.md, *.py, etc.)
The current settings menu for line-ending-selector is fairly flexible, allowing users to default to either UNIX-style LF line endings, or Windows-style CRLF line endings for new text files. However, I think we can do better:
*.sh
,*.bash
,.profile
, etc.)*.bat
,*.cmd
,*.ps1
,*.vbs
,*.cs
,*.fs
, etc.)This way, users can be sure to use an appropriate line ending format for critical file types, while using their preferential default of LF/CRLF for non-specific files (
*.txt
,*.md
,*.py
, etc.)