V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
xi4oh4o
0.23D

Sublime Text 2 使用zencoding,在元素间按tab会跳转field的解决办法

  •  
  •   xi4oh4o · Jul 23, 2012 · 3658 views
    This topic created in 5034 days ago, the information mentioned may be changed or developed.
    最近发现使用ST2的zencoding时,比如在<div>p(这里点tab的话)</div>(光标会跳到这里)
    应该是ST2的一个filed选择功能,类似zencoding的 ctrl+[ & ctrl+]

    解决办法是在key-map里false掉

    { "keys": ["tab"], "command": "next_field", "context":
    [
    { "key": "has_next_field", "operator": "equal", "operand": false }
    ]
    },

    { "keys": ["shift+tab"], "command": "prev_field", "context":
    [
    { "key": "has_prev_field", "operator": "equal", "operand": false }
    ]
    },

    这两个设定即可
    2 replies    1970-01-01 08:00:00 +08:00
    deepure
        1
    deepure  
       Jul 23, 2012
    我一直把第一段的快捷键设为其它键,第二段没改好像没影响。
    chairo
        2
    chairo  
       Jul 23, 2012
    我第一段设置了以后按tab键就没任何作用了,在任何地方按tab都没动静。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3449 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:09 · PVG 08:09 · LAX 17:09 · JFK 20:09
    ♥ Do have faith in what you're doing.