less.tmbundle icon indicating copy to clipboard operation
less.tmbundle copied to clipboard

CSS semicolon not added when a colon is typed

Open tomthetree opened this issue 14 years ago • 2 comments

Hi, awesome bundle! :)

One difference from using the regular CSS bundle and the LESS bundle is when you type a css attribute followed by a colon:

# test {

outline: }

The regular CSS bundle will place a semicolon after your cursor, so:

# test {

outline:; }

Saving you from typing it. Small difference but something I'm used to; thought I'd flag it.

Thanks,

tomthetree avatar Dec 02 '10 15:12 tomthetree

I made a temporary fix for this by adding a custom preference scoped to source.css.less with

{   smartTypingPairs = (
    ( ':', ';' ),
    ( '{', '}' ),
);
}

This isn't ideal, because now when I type something like :hover i get :hover;

It's less frustrating than not getting the semi-colon at all, but it's not perfect.

jakemhiller avatar Mar 25 '11 18:03 jakemhiller

Thanks for the quick fix, Jake. I would love to see this fixed with the correct scope. I tried to figure it out and was unsuccessful.

dcalhoun avatar Dec 09 '11 19:12 dcalhoun