vs code設置保存時自動將CRLF 轉換成 LF

一、下載vs code插件:EditorConfig for VS Codespa

二、在項目目錄下新建文件:.editorconfig插件

三、在文件中添加如下內容, 搞定code

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 2
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
相關文章
相關標籤/搜索