less.tmbundle
less.tmbundle copied to clipboard
CSS semicolon not added when a colon is typed
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,
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.
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.