Home Download Buy Blog Forum Support

Change the trigger for Zen coding

Change the trigger for Zen coding

Postby IGRACH on Fri Oct 12, 2012 3:47 pm

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.
IGRACH
 
Posts: 18
Joined: Tue Oct 02, 2012 1:05 am

Re: Change the trigger for Zen coding

Postby vitaLee on Sat Oct 13, 2012 5:09 pm

i think you cant bind it to just shift, but to use other shortcut add this to your keybindings and change "keys": ["tab"]
Code: Select all
{
  "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"]
}
vitaLee
 
Posts: 150
Joined: Tue Dec 27, 2011 11:10 pm

Re: Change the trigger for Zen coding

Postby IGRACH on Sun Oct 14, 2012 3:12 am

I'm a bit new to all this can u pleave expain it more detailed
THX
IGRACH
 
Posts: 18
Joined: Tue Oct 02, 2012 1:05 am

Re: Change the trigger for Zen coding

Postby pier on Tue Nov 06, 2012 8:34 pm

IGRACH wrote:I'm a bit new to all this can u pleave expain it more detailed
THX


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.
pier
 
Posts: 92
Joined: Fri Jun 15, 2012 2:47 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 10 guests