在Visual Studio代码中显示空白字符

本文介绍了如何在Visual Studio Code中显示空白字符,包括不同版本的VS Code设置方法,以及如何通过键盘快捷键切换显示空白字符,并提供了设置文件的修改建议。
摘要由CSDN通过智能技术生成

本文翻译自:Show whitespace characters in Visual Studio Code

Is it possible to show whitespace characters, like the space character, in Visual Studio Code? 是否可以在Visual Studio代码中显示空格字符,如空格字符?

There doesn't appear to be an option for it in the settings.json (though it is an option in Atom.io ), and I haven't been able to display whitespace characters using CSS. settings.json似乎没有它的选项(虽然它是Atom.io中的一个选项),但我无法使用CSS显示空格字符。


#1楼

参考:https://stackoom.com/question/22Swd/在Visual-Studio代码中显示空白字符


#2楼

VS Code 1.6.0 and Greater VS Code 1.6.0和更高版本

As mentioned by aloisdg below , editor.renderWhitespace is now an enum taking either none , boundary or all . 正如提到以下aloisdgeditor.renderWhitespace现在是一个枚举采取任何noneboundaryall To view all whitespaces: 要查看所有空格:

"editor.
  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值