Lately a good friend of mine showed me this plugin for Sublime Text called Hayaku. I had never heard of it so I asked him what it was. It’s like Emmet for CSS. Hey, I know Emmet, it makes writing HTML and CSS easier, so what’s this about?
So Hayaku is a plugin for Sublime Text and it’s very cool. It is actually a tad bit different from Emmet, it is more of a fuzzy auto completer. You can write abbreviations for CSS rules, press tab, and Hayaku will try to guess what you ment, some examples:
As you can see it also is able to derive values from your abbreviations. You have to play with it for a while. I noticed it did not resolve everything to the result I expected, but most of the times it’s right. It can also figure out different value types:
Hey that’s pretty nice! Another cool feature is that it can also take advantage of what’s on your clipboard. Who didn’t copy paste HEX codes for colors from Photoshop or something else to their CSS/SASS? I did do that, a lot. Let’s say you copied #3498db from flatuicolors.com, a nice shade of blue. Now remember how in the first example ‘c’ + tab resulted in a color with value ‘#FFF‘, let’s try that again:
Quite impressive, don’t you think? Hayaku has been polite and put the copied color there for us, as if it knows our habits.
As you can see a very nice tool, you can be more productive if you get the hang of it. It is currently only available for Sublime Text, but other IDE’s can provide similar functionalities.
- Official website: hayakubundle.com
- How to install Sublime Text packages: granneman.com…how-to-install-and-use-package-control