-
Notifications
You must be signed in to change notification settings - Fork 7.6k
Create aliases for specific margin and padding types #5445
Comments
Maybe this is a good extension idea, and maybe there is already an extension that does exactly this. But I don't think that this has to be in brackets core. |
@zackshapiro Take a look at emmet, which was formerly known as zen coding. There’s already a Brackets extension in the registry. |
Just did. Thanks guys On Tue, Oct 8, 2013 at 7:55 PM, Steffen Bruchmann
|
I wonder if a good way to fix this would be to use the same StringMatch algorithm in CSS code hints that we use elsewhere (e.g. Quick Open). I suspect that if we did that, things like "mr" would quickly match margin-right. We already use that in JS code hints, so it actually seems inconsistent that we don't use it in CSS code hints. Medium priority to @JeffryBooher to investigate--it should be pretty easy to put this in and see how it feels. If it's more complicated, or doesn't seem like it would address the original filer's goal, we could move this to the backlog. |
Sounds good to me! Best, On Mon, Oct 14, 2013 at 11:24 AM, Narciso Jaramillo
|
@zackshapiro The Snippets extension is another one you might find useful in the meantime. You can fully customize the set of shorthand mnemonics and what they map to. |
@peterflynn Noted! Thanks! |
This is now fixed on master, in the way that @njx suggests which means that it's not specific aliases but rather fancy searching and sorting. |
good job @JeffryBooher ! I just fetched this commit on my Brackets install and the feature seems pretty solid. Nice work. |
I find myself typing margin-left, margin-right, padding-top, padding-bottom, etc., over and over in my CSS.
It would be fantastic to have aliases for my CSS like this:
Instead of
margin-left: 64px;
I could type
mr: 64px;
margin-top
would bemt
margin-bottom
would bemb
padding-left
would bepl
padding-right
would bepr
The text was updated successfully, but these errors were encountered: