如何在Visual Studio代码中显示lineendings(CR,LF)(不在Visual Studio中)。
我使用以下设置,但不使用它们显示行结尾。
"editor.renderWhitespace": true,
"editor.renderControlCharacters": true,
"editor.renderIndentGuides": true
行结尾有设置吗?
编辑1:我在GitHub上打开了一个问题:https://github.com/Microsoft/vscode/issues/12223
编辑2:Soham Kamani对此进行了扩展:code-eol
如果要将其设置为默认值LF,可以转到文件 - >首选项 - >设置,在用户设置下,您可以将此行粘贴到其他用户设置下方。
“fil.eol”:“六月”
例如。
"git.confirmSync": false,
"window.zoomLevel": -1,
"workbench.activityBar.visible": true,
"editor.wordWrap": true,
"workbench.iconTheme": "vscode-icons",
"window.menuBarVisibility": "default",
"vsicons.projectDetection.autoReload": true,
"files.eol": "\n"
有一个显示行结尾的扩展名。您可以配置使用的颜色,表示CRLF和LF的字符以及打开和关闭它的布尔值。
Name: Line endings
Id: jhartell.vscode-line-endings
Description: Display line ending characters in vscode
Version: 0.1.0
Publisher: Johnny Härtell