Sublime Forum

Remove Space From CSS Completion

#1

When writing CSS, I write my rules like so:

div {width:50px; background:blue;}

But when using completions, after hitting tab, the colon is inserted, but with a space after it. Is there a way to only insert the colon, and no space?

Thanks.

0 Likes

CSS syntax and the semicolon
#2

Maybe you found a way to fix it?

0 Likes

#3

Nope, I haven’t found a way yet. Hoping to hear from someone on how to though.

0 Likes

#4

Untested, but open Packages/CSS/css_completions.py and remove the space after the colon on line 190.

As this is in the Default packages, you’d have to make this change after every update.

0 Likes