Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS semicolon not added when a colon is typed #1

Open
tomthetree opened this issue Dec 2, 2010 · 2 comments
Open

CSS semicolon not added when a colon is typed #1

tomthetree opened this issue Dec 2, 2010 · 2 comments

Comments

@tomthetree
Copy link

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,

@jakemhiller
Copy link

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.

@dcalhoun
Copy link

dcalhoun commented Dec 9, 2011

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants