阻止 Visual Studio 在文件中混合行尾 [英] Stop Visual Studio from mixing line endings in files

查看:35
本文介绍了阻止 Visual Studio 在文件中混合行尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在 Visual Studio 2010 中打开基于文本的文件时,它将使用 CRLF 而不是原始文件的行尾格式编写我的编辑.我怎样才能阻止 VS 这样做?任何体面的编辑器都应该具备这种能力.

When opening a text based file in Visual Studio 2010 it will then write my edits with CRLF instead of the line ending format of the original file. How can I stop VS from doing this? Any half decent editor should have this capability.

更糟糕的是,由于 VS 在 CRLF 中写入了部分文件,因此(再次打开文件时)会出现一个对话框,要求我转换文件行尾.

What's worse is that since VS wrote the file with portions in CRLF, it then (when opening the file again) will present a dialog asking me to convert the files line ending.

推荐答案

文件菜单上,选择高级保存选项,你可以在那里控制它.

On the File menu, choose Advanced Save Options, you can control it there.

这是文档,您应该打开一个文件首先.

Here's the documentation, you should have a file open first.

这篇关于阻止 Visual Studio 在文件中混合行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆