且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在CSS中使用Sublime Text 2冒号后删除额外的空格?

更新时间:2022-12-27 22:38:51

我做了一些挖掘,并建议一个替代解决方案。

I did some more digging and would like to suggest an alternate solution.


  1. 在Sublime中打开〜/ Library / Application Support / Sublime Text 2 / Packages / CSS / css_completions.py

在第190行,删除冒号后面的空格:

On line 190, remove the space after the colon:

l.append((p, p + ": "))


我可以想到的唯一注意事项是的,这可能会覆盖,当你更新Sublime,但这似乎很好没有安装额外的包。

The only caveat I can think of is that this might get overwritten when you update Sublime, but this seemed to work great without installing an extra package.