0

我们当前项目中的 EOL 样式似乎并不一致。我正在寻找一个 Visual Studio 插件/扩展,以将当前打开的文件中的 EOL 样式显示为 LF、CRLF 或混合。

4

2 回答 2

0

不完全是您想要的,但有一个内置功能:

工具 -> 选项

环境 -> 文档 -> 在加载时检查一致的行尾

于 2011-10-17T10:36:47.060 回答
0

尝试使用以下代码

Dim TextLine As String
FileOpen(1, "TESTFILE", OpenMode.Input)   ' Open file.
Do While Not EOF(1)   ' Loop until end of file.
   TextLine = LineInput(1)   ' Read line into variable.
   Debug.WriteLine(TextLine)   ' Print to the Command window.
Loop
FileClose(1) 
于 2011-10-17T09:43:30.710 回答