ton*_*nka 168 visual-studio-code
如何在Visual Studio代码中显示lineendings(CR,LF)(不在Visual Studio中).
我使用以下设置,但不使用它们显示行结尾.
"editor.renderWhitespace": true,
"editor.renderControlCharacters": true,
"editor.renderIndentGuides": true
Run Code Online (Sandbox Code Playgroud)
是否有线端设置?
我在github上打开了一个问题https://github.com/Microsoft/vscode/issues/12223
Soham Kamani对此代码进行了扩展
问候Tonka
Lle*_*wey 301
AFAIK无法直观地看到编辑器空间中的行结尾,但是在窗口的右下角有一个指示符"CLRF"或"LF",它可以让您设置特定文件的行结尾.单击文本也可以更改行结尾.
Isa*_*eur 75
如果要将其设置为默认值LF,可以转到文件 - >首选项 - >设置,在用户设置下,您可以将此行粘贴到其他用户设置下方.
"files.eol":"\n"
例如.
"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"
Run Code Online (Sandbox Code Playgroud)
fri*_*mle 18
Render Line Endings是一个仍在积极维护的 Visual Studio Code 扩展(截至 2020 年 4 月):
https://marketplace.visualstudio.com/items?itemName=medo64.render-crlf
https://github.com/medo64/render-crlf/
它可以这样配置:
{
"editor.renderWhitespace": "all",
"code-eol.newlineCharacter": "¬",
"code-eol.returnCharacter" : "¤",
"code-eol.crlfCharacter" : "¤¬",
}
Run Code Online (Sandbox Code Playgroud)
看起来像这样:
Sha*_*mal 14
有一个扩展名显示行尾。您可以配置所使用的颜色,代表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
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
160349 次 |
最近记录: |