我对 Visual Studio 2017 社区有疑问。 在保存文件时为 unix 编写代码时,我找不到在哪里可以将行尾字符从 windows crlf 切换到 unix'lf。
最佳答案
我建议使用以下 VS 扩展。
Line Endings Unifier
Unify line endings in a whole solution, a specific project, a chosen folder or a certain source file by right clicking on a solution, a project or a file in the Solution Explorer.
如果在 Windows - VS2017 上通过 Git 管理项目然后在 macOS - JetBrains Rider 上打开它,我遇到了类似的问题。
关于linux - Visual Studio 2017 crlf/lf,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46425469/