Visual Studio Code:如何显示行尾 [英] Visual Studio Code: How to show line endings
问题描述
如何在 Visual Studio Code(而非 Visual Studio)中显示行尾(CR、LF)?
我使用以下设置,但没有一个显示行尾.
editor.renderWhitespace":真,editor.renderControlCharacters":真,editor.renderIndentGuides":true
是否有行尾设置?
我在 GitHub 上打开了一个问题:
How can I display lineendings (CR,LF) in Visual Studio Code (not in Visual Studio)?
I use the following settings, but none of them show the line endings.
"editor.renderWhitespace": true,
"editor.renderControlCharacters": true,
"editor.renderIndentGuides": true
Is there a setting for lineendings?
I've opened a issue on GitHub: Possibility to display line endings in text area #12223
Soham Kamani made an extensions for this: code-eol
AFAIK there is no way to visually see line endings in the editor space, but in the bottom-right corner of the window there is an indicator that says "CLRF" or "LF" which will let you set the line endings for a particular file. Clicking on the text will allow you to change the line endings as well.
这篇关于Visual Studio Code:如何显示行尾的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!