Textmate空白/不可见显示空格

2024-05-23 22:04:12 发布

您现在位置:Python中文网/ 问答频道 /正文

有没有办法在TextMate中显示“软标签”(空格)?View→{}如果使用制表符进行缩进,那么它很适合跟踪缩进。不幸的是,在缩进是语义的语言中,通常必须使用空格。 (Python、YAML、HAML、CoffeeScript)

对于在TextMate中显示空白或跟踪软缩进有什么建议吗?我应该继续等短信吗?在

也欢迎其他战略和建议。在


Tags: view语言yaml语义标签短信建议空白
2条回答

您可以使用软标签-as described here。当我需要此功能时,我也很难找到它;)

当启用Show Invisibles时,textmate2的latest version突出显示空格。在

invisibles


编辑:

您甚至可以通过修改.tm_properties文件中的invisiblesMap属性,自定义哪些不可见项用哪个字符显示。在

从TextMate changelog:

This can be set to a string which is used to control which glyphs are used for invisible characters. Add either \n, \t, or a space to the string, followed by the glyph that should be used to render the character, or prefix it with ~ to disable rendering of that character. For example to disable rendering of spaces and render tabs as add this to .tm_properties: invisiblesMap = "~ \t┊".

旁注:

不再是这种情况,功能已恢复。

According to the Log of 2013-10-23 (v2.0-alpha.9489): "Show Invisibles will no longer treat space as an invisible (which was added in previous build) as it was causing issues with right-to-left rendering and combining marks used after spaces. The feature might be back, but needs to be implemented differently."

相关问题 更多 >