Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to remove extra space after a colon in CSS with Sublime Text 2?

When auto-complete is triggered for a CSS style, Sublime by default adds a space after colon like so:

position: relative;

How do I remove this space?

like image 229
pixelfreak Avatar asked Jan 03 '13 23:01

pixelfreak


1 Answers

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

  1. Open ~/Library/Application Support/Sublime Text 2/Packages/CSS/css_completions.py in Sublime.

  2. On line 190, remove the space after the colon:

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

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.

like image 140
Tracy Fu Avatar answered Oct 04 '22 22:10

Tracy Fu