VS2017 文件高级保存选项显示设置

莫名其妙的某一天,用VS编写的C#脚本在Unity下都会有这么一条提醒:

There are inconsistent line endings in the Assets/Scripts/RandomRotate.cs script. Some are Mac OS X (UNIX) and some are Windows.

This might lead to incorrect line numbers in stacktraces and compiler errors. Many text editors can fix this using Convert Line Endings menu commands.

在用VS2015的时候可以在文件→文件高级保存选项中

但是在VS2017中,这个功能不见了,按下面方法就可以给弄出来了

1 工具→自定义; 1 工具→自定义;
2 点击 命令 标签; 2 点击 命令 标签;
3 在上方单选区选中 菜单栏,下拉列表选 文件; 3 在上方单选区选中 菜单栏,下拉列表选 文件;
4 点击 添加命令 4 点击 添加命令
5 在类别中,找到文件,在右侧找到高级保存选项,确定 5 在类别中,找到文件,在右侧找到高级保存选项,确定
6 然后可以通过下移调整该选项在文件菜单中的位置,关闭。 6 然后可以通过下移调整该选项在文件菜单中的位置,关闭。

经验分享 程序员 微信小程序 职场和发展