如何在CSS中使用Sublime Text 2冒号后删除额外的空格? [英] How to remove extra space after a colon in CSS with Sublime Text 2?
本文介绍了如何在CSS中使用Sublime Text 2冒号后删除额外的空格?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
当为CSS样式触发自动完成时,Sublime默认在冒号后添加一个空格,如下所示:
When auto-complete is triggered for a CSS style, Sublime by default adds a space after colon like so:
position: relative;
如何删除此空格?
推荐答案
我做了一些挖掘,并建议一个替代解决方案。
I did some more digging and would like to suggest an alternate solution.
-
在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.
这篇关于如何在CSS中使用Sublime Text 2冒号后删除额外的空格?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文