gpt4 book ai didi

visual-studio-code - 如何在 Visual Studio Code 中将所有文件的 EOL 从 CRLF 更改为 LF

转载 作者:行者123 更新时间:2023-12-04 02:47:27 35 4
gpt4 key购买 nike

我已经更改了默认值 EOL从 CRLF 到 LF,但这仅适用于新文件。我想知道如何一次更改所有文件的 EOL,因为我有数百个文件,并且很难手动完成。

最佳答案

运行这些。这个对我有用。根据您的要求定制

git config core.autocrlf false 
git rm --cached -r .
git reset --hard

关于visual-studio-code - 如何在 Visual Studio Code 中将所有文件的 EOL 从 CRLF 更改为 LF,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49228693/

35 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com