Sublime Forum

Change the trigger for Zen coding

#1

Hi
Is it possible to change the button that triggers Zen coding, default it’s TAB, I would like it to be shift. Because I have issues whit snippets and comletions that is triggered by TAB also?
THX.

0 Likes

#2

i think you cant bind it to just shift, but to use other shortcut add this to your keybindings and change “keys”: “tab”]

{
  "command": "expand_zen_abbreviation_on_tab",
  "context": 
    { "key": "selector", "match_all": true, "operand": "source.css - source.css.embedded, text.xml, text.xsl, text.html -source -meta.tag, meta.scope.between-tag-pair.html -source", "operator": "equal"},
    { "key": "selection_empty", "match_all": true, "operand": true, "operator": "equal" },
    { "key": "is_zen", "match_all": true }
  ],
  "keys": "tab"]
}
0 Likes

#3

I’m a bit new to all this can u pleave expain it more detailed
THX

0 Likes

#4

[quote=“IGRACH”]I’m a bit new to all this can u pleave expain it more detailed
THX[/quote]

I had a similar problem. Check this post for a solution.

viewtopic.php?f=3&t=8565#p39383

I simply removed text.xml from the keybinding. I suppose you could change tab to something else.

0 Likes