- Toss all
.sublime-snippetfiles into/Packages/User/in your sublime install - Optional
- Copy the lines from
sample.sublime-keymapinto your user keymap More Info Here
- Copy the lines from
All tab triggers begin with mq and are followed with either m or x, indicating a min-width or max-width query, then 1 of the 4 options x, s, m, and l, indicating one of the 4 built in bootstrap breakpoints xs, sm, md, and lg.
mqxm produces:
@media (min-width: $screen-md) and (max-width:$screen-md-max){}
Tab breaks are set to easily allow you to remove the part of the query you may now want. in this case (min-width: $screen-md) and is removed with a single delete key press.
All tab triggers begin with bc, then 1 of the 4 options x, s, m, and l, indicating one of the 4 built in bootstrap breakpoints xs, sm, md, and lg. They are all optionally followed with o, indicating the use of an offset class.
bclo produces:
col-lg-offset-
bcx produces:
col-xs-
the addition of numbers is simply done manually after the snippet.
All key bindings use super+shift+alt (Note: super = Windows key / Command key) as modifiers for all keypresses. You can simply hold those three buttons the whole time. You then use a sequence of:
m, indicating media query, m or x, indicating a min-width or max-width query, then 1 of the 4 options x, s, m, and l, indicating one of the 4 built in bootstrap breakpoints xs, sm, md, and lg.
"super+shift+alt+m", "super+shift+alt+m", "super+shift+alt+l" produces:
@media (min-width: $screen-lg){}
All key bindings use super+shift+alt (Note: super = Windows key / Command key) as modifiers for all keypresses. You can simply hold those three buttons the whole time. You then use a sequence of:
b, indicating bootstrap column, optionally o, indicating the use of an offset class, then 1 of the 4 options x, s, m, and l, indicating one of the 4 built in bootstrap breakpoints xs, sm, md, and lg.
"super+shift+alt+b", "super+shift+alt+o", "super+shift+alt+m" produces:
col-md-offset-
Enjoy!!!