Aron Woost
Aron Woost

Reputation: 20658

How to change css autocomplete style

When I type "he" SublimeText2 offers me "height". Good.

However when I confirm I want to have

height:|; instead of height: | (| indicates the cursor).

Where to change that?

Upvotes: 0

Views: 554

Answers (1)

d_rail
d_rail

Reputation: 4119

Go to your Packages folder. Then to the CSS folder. Open css_completions.py.

Almost at the bottom, inside of the on_query_completions method, there is a line

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

change to:

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

Remove the space after the colon.

Edit

Press tab after entering value to get semicolon.

Also, Emmet is worth checking out for nice completions/snippets and more. However, editing those is another question.

Edit2

Here's a similar question: How to remove extra space after a colon in CSS with Sublime Text 2?

Upvotes: 1

Related Questions