vscode把CRLF统一更换成LF

发布时间 2023-09-07 11:44:35作者: 欢欢11
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