Sublime Forum

Annoying issue: html tag autocomplete

#1

Hello.

  1. When i type “<” and then (for example) ul and press TAB, sublime text autocomplete it with “<

      ” and i feel annoyed to delete first “<” each time.
    • When element autocompleted and set focus between tags (

        HERE
      ), if i try to add autocomplete and press TAB - focus just jumping after tag without autocompletion.

    Question: can it be configured to autocomplete html tags & replace first “<” | if not, have you plans to fix this?

    P.S. Sublime Text 2 Build 2183, WinXP

    0 Likes

    Extra Angle Bracket with CodeIntel
    Issue with auto complete
    #2

    viewtopic.php?f=2&t=4807&p=25052&hilit=%3C%3C+tag#p25052

    viewtopic.php?f=3&t=5396&p=23856&hilit=%3C%3Cdiv#p23856
    viewtopic.php?f=3&t=5159&p=23054&hilit=%3C%3Cdiv#p23054

    0 Likes

    #3

    tito, thx. 1) fixed with uninstall zen coding plugin

    how about 2nd question? or it’s sublime core issue?

    0 Likes

    #4

    [quote=“mjey”]tito, thx. 1) fixed with uninstall zen coding plugin

    how about 2nd question? or it’s sublime core issue?[/quote]

    Changing the following file setting to true should allow auto-completion to occur from within a snippet:

    // Controls if auto complete is shown when snippet fields are active.
    // Only relevant if auto_complete_commit_on_tab is true.
    “auto_complete_with_fields”: false,

    0 Likes

    #5

    agibsonsw, thanks!

    btw, those 2 lines solved issue:

    "auto_complete_commit_on_tab": true, "auto_complete_with_fields": true

    0 Likes