visual studio->Inconsistent Line Endings

When loading some Ruby or Rails files, I see a warning that the line endings in the file are not consistent. What is the problem and how can I get rid of the warning dialog?

                                                                          

This is a Visual Studio warning. It occurs when you load a file containing a mix of Windows standard and non-standard line-endings. Windows line-endings take the form of a pair of characters (Carriage Return plus Linefeed) whereas Unix line-endings use just a single (Linefeed) character. You can easily tell the difference by loading a file into Windows Notepad. Those files which use Unix-style line-endings will wrap in Notepad; those using Windows line-endings won’t.Many files in the standard Ruby libraries as well as files generated by Rails scripts use the Unix line-endings. If a file is subsequently modified using a Windows editor it may end up with a mix of Windows and Unix-style line-endings. Visual Studio detects these inconsistencies on loading and asks if you would like to regularize them. If you choose to do so, you can select options such as Windows, (CR+LF), Unix (LF) or Macintosh (CR).If you prefer to ignore inconsistent line-endings, you can disable the warning dialog by unchecking ‘Always show this dialog’. You can also set this option in the global Options dialog ( Tools->Options->Environment->Documents). Enable or disable the option: Check for consistent line endings on load.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值