linux - Visual Studio 2017 crlf/lf

标签 linux windows unix encoding visual-studio-2017

我对 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/

相关文章:

windows - 如何使用批处理文件追加文本文件

linux - Bash - 创建 'goto' 等价物的问题

linux - 我可以在while循环中进行收银bash脚本吗?

java - 将多个 JFrame 中的值检索到单个 JFrame

python - Websocket 代码适用于 Windows 但不适用于 Linux

linux - *nix 系统中的内存镜像是什么?

linux - 如何使用 shell 脚本替换属性文件中的点

c - 你如何阅读箭头键?

regex - 使用 -f 选项的 grep 或 fgrep 没有输出不起作用

linux - 写入共享内存时出现总线错误