353943780

sublime text 3 emmet 请问怎么 tab 键补全自定义标签?

  •  
  •   353943780 · Mar 22, 2017 · 3217 views
    This topic created in 3372 days ago, the information mentioned may be changed or developed.

    例如输入 foo 按下 tab 键,现在只会变成 <footer></footer>,期望是变成 <foo></foo>

    例如输入 bar 按下 tab 键,现在只会 退一格,期望是变成 <bar></bar>

    请问应该怎么设置呢?菜鸟求教的说

    2 replies    2017-06-06 14:38:17 +08:00
    353943780
        1
    353943780  
    OP
       Mar 22, 2017
    自定义键盘快捷键

    {"keys": ["tab"], "args": {"action": "expand_abbreviation"}, "command": "run_emmet_action", "context": [{"key": "emmet_action_enabled.expand_abbreviation"}]}

    但是这样 tab 连退格不了了
    lanceli
        2
    lanceli  
       Jun 6, 2017
    foo 然后 ctrl+e
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3571 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 60ms · UTC 10:51 · PVG 18:51 · LAX 03:51 · JFK 06:51
    ♥ Do have faith in what you're doing.