Visual Studio Code:如何显示行尾 [英] Visual Studio Code: How to show line endings

查看:41
本文介绍了Visual Studio Code:如何显示行尾的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在 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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆