Fork me on GitHub

vscode把CRLF统一更换成LF

1. 安装vscode插件
    EditorConfig for VS Code

2. 项目根目录下新建.editorconfig
     # top-most EditorConfig file
     root = true

     # Unix-style newlines with a newline ending every file
     [*]
     # lf, cr, or crlf
     end_of_line = lf
     # ensure file ends with a newline when saving
     insert_final_newline = true

 

posted @ 2023-09-07 11:36  欢欢11  阅读(2216)  评论(0编辑  收藏  举报