Sublime Text 2

和自甴很熟 提交于 2020-02-26 02:36:52

Sublime Text如何显示不可打印的字符(我对SPACE和TAB感兴趣)?


#1楼

要查看空白,设置为:

// Set to "none" to turn off drawing white space, "selection" to draw only the
// white space within the selection, and "all" to draw all white space
"draw_white_space": "selection",

如果您进入首选项 - >设置默认值,您可以看到它。 如果您编辑用户设置(首选项 - >设置 - 用户)并按以下方式添加行,您应该得到您想要的:

{
    "color_scheme": "Packages/Color Scheme - Default/Slush & Poppies.tmTheme",
    "font_size": 10,
    "draw_white_space": "all"
}

请记住,设置是JSON,因此没有逗号。


#2楼

在选定的文本中,SPACE显示为点(。),TAB显示为短划线( - )。


#3楼

如果你真的只想看到尾随空格,这个ST2插件就可以解决这个问题: https//github.com/SublimeText/TrailingSpaces


#4楼

如果您希望能够打开和关闭空格的显示,可以安装HighlightWhitespaces插件


#5楼

我使用Unicode Character Highlighter ,可以显示空格和一些其他特殊字符。

通过Package Control添加它

安装包,unicode ......

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!