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

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章