Sublime Forum

Not putting blank space after property in css

#1

One thing that drives me mad for quite a while now that sublime auto-inserts a space after a css property, like color: black; instead of leaving it at color:black;.

Is there some way to configure it? I have found this old thread Remove blank space after CSS style where a user suggests editing css_completions.py

However, i have looked into it and the way the autoocmplete has probably changed and there is no .append((p, p + ": ")) … in the file.

Could someone help?

0 Likes

#2

You can set "auto_complete_trailing_spaces": false in your user preferences to complete :; without space.

0 Likes

#3

but that will apply to everything globally, not only css. or am i wrong?

0 Likes

#4

You may define syntax specific settings, see: https://www.sublimetext.com/docs/settings.html#syntax-specific-settings

0 Likes

#5

css_completions is currently the only plugin making use of that setting.

0 Likes

#6

okay, thank you for the answers!

0 Likes