Can I set the VS Code default EOL based on file type?

前端 未结 3 1482
执念已碎
执念已碎 2021-01-18 07:19

Working with .sh files on Windows causes issues when running them in Linux Docker containers if they have EOL of CRLF. Can I make VS Code always work with LF fo

3条回答
  •  無奈伤痛
    2021-01-18 07:43

    In your settings window, go to

    Settings > Text Editor > Files > Eol option. You'll fine following available options there

    - \n
    - \r\n
    - auto (default)
    

    Here \n represents LF, \r\n represents CRLF, and auto use the operating system specific EL operator.

    Select your option and save.

    VS Code: version 1.13.3

提交回复
热议问题