Sublime Forum

Auto_complete css rule bug

#1

I’ve been using sublime text for 5 years now. Until version 4126 when I wrote css rules in a .css file I could write inline and the rules were self-completing, for example I write the color rule and the cursor is just before the “;” -> #test { font-size: 1rem; color: ; }

With the new version it no longer works and is written like this: #test { font-size: 1rem; color: } with the cursor attached to the “:”.

Is this a bug that can be fixed with some rules in the settings or was it done by choice?

Thank you

0 Likes

#2

Not adding semicolon after last element in inline styles (just before }) was actually an intended change as last item doesn’t need to be terminated. Not adding space after colon is a side-effect.

To change this behavior, CSS/css_completions.py needs to be modified.

0 Likes