Sublime Forum

CSS semicolon not showing up automatically anymore!

#1

I save a stylesheet with the file extension .css
I type a selector, curly brackets, and a property. When I type the argument, it does not put a semicolon after it automatically anymore.

Like…

background {
color: blue;
}

Usually sublime puts the semicolon there automatically. I installed ZenCode using package control, and now it doesn’t. Why? :frowning:

0 Likes

#2

ZenCoding has completions for css abbreviations like d:n which after pressing tab will insert display:none; (including a semicolon)

It overrides the binding which does the auto insertion of ; so as not to get display:none;; with two semi-colons.

I think, however, it should be possible to determine if there’s already a trailing ; and just not insert that.

0 Likes

#3

I don’t have ZenCoding installed. When I write CSS, the semicolon is placed automatically.

Perhaps, the ZenCoding causing the issue.

0 Likes