the line endings in the following file are not consistent.
来源:互联网 发布:平板一键刷机软件 编辑:程序博客网 时间:2024/05/22 15:40
有时候,打开别人的项目会出现: the line endings in the following file are not consistent.Do you want to normalize the line endings?
原因就是:因为代码行有的是以\r\n结尾,有的是\r或者\n,\r\n是windows操作系统的默认换行符,而后两者是linux和mac的,所以VS检测到了个问题,发出警告。但是因为windows也能识别\r或者\n换行符,所以直接忽略也是可以的(Tools->Options->Environment->Documents 里 Check consistent for line endings on load 不勾选就行了)。但是如果是在VS上修改要用在linux上的代码之类的情况,就要选择用哪种line ending了。
0 0
- The line endings in the following file are not consistent.
- The line endings in the following file are not consistent.
- the line endings in the following file are not consistent.
- There are inconsistent line endings in the "XXX.cs" script
- There are inconsistent line endings in the 'Assets/Scripts/xxx.cs' script.
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windo
- There are inconsistent line endings in the 'Assets/Scripts/Test.cs' script. Some are Mac OS X (UNIX)
- jgroups 集群 the following properties in UNICAST are not recognized
- The following URL schemes found in your app are not in the correct format 解决方案
- There are inconsistent line endings in the 'xxx' script. Some are Mac OS X (UNIX) and some are Windows
- git commit时出现的问题The file will have its original line endings in your working directory
- Android studio 报一下错时解决方案For example, the following line, in the gradle.properties file, sets the max
- Question 19: Which of the following are not pre-processor directives in C++?
- (NOT CLEAR)Question 45: Which of the following options are returned by the typeid operator in C++?
- The following macros are predefined in OS X:
- Bitmap Font 报错“characters from the file are not available in the font”解决办法
- All packages are not available for download! The following packages are not available:
- Read the Last line in a file
- shell 脚本之获取命令输出字符串以及函数参数传递
- 伟东山视频自学笔记——打补丁
- 单链表基本操作(2)
- 等高UITableViewCell
- 堆排序之Java实现
- the line endings in the following file are not consistent.
- core dump 故障分析
- OpenCV Java 问题记录 - Mat类型和BufferedImage类型的相互转化
- 欢迎使用CSDN-markdown编辑器
- Ajax工作原理
- android动画库
- asp.net后台设置控件百分比的长度
- 两个链表的第一个公共结点
- Eclipse开发聊天插件-ImContent