Elusive CSS is a package based on minimaldesign's TextMate CSS Bundle.
"The basic idea behind this CSS bundle is to access everything through tab triggers. You can access every CSS property by typing its initials." More
This package uses different tab triggers, but the idea is the same. Also included are some shortcuts for common tasks, for instance (| = cursor):
1. hofo*tab*
2. |:hover, |:focus {}
3. Write selector, *tab*
4. selector:hover, selector:focus {|}
and if you're using pseudo elements a lot:
1. selector:bef*tab*
2. selector:before {
content: '';
display: block;
position: absolute;
|
}
A lot of bleeding edge CSS3 is not yet implemented, due to limited use in production.
In addition to the triggers, the language definition file is slightly modified to include...
- CSS3 properties
- A new scope for vendor prefixes:
- support.type.vendor-property-name.css (i.e. -moz-transition)
- support.type.vendor-property-value.css (i.e. -moz-linear-gradient)
- entity.other.attribute-name.vendor-pseudo.css (i.e. ::-moz-focus-inner)
- Some misc. details like semi-common font names (Palatino, Consolas etc.) and single-word Google Web Fonts
...for use in color schemes.
Just extract to your packages folder (in Sublime Text, Preferences > Browse Packages...
).
For it to take precedence over the default package, go to View > Syntax > Open all with current extention as... > Elusive CSS
while in a CSS file. Alternatively if that doesn't seem to work, manually add to User/Elusive CSS.sublime-settings:
{
"extensions":
[
"css"
]
}
You may also want to ignore the default CSS package, to avoid it affecting autocomplete in any way (User/Preferences.sublime-settings):
"ignored_packages":
[
"CSS"
]