Sublime Forum

Auto-completion in XML/HTML

#1

Auto-completion can work when I edit a tag and type any letter. But auto-completion won’t work when I edit the content of an element unless using ctrl+space.
Such as <tag>Hello</tag>, in the tag I just type in “t” and auto-completion list will pop-up, but when I type “H…”, I must use ctrl+space.

0 Likes

#2

Set this in syntax-specific preferences for xml and html:

{
  "auto_complete_selector": "text.xml, text.html"
}

If you don’t know what “syntax-specific” is it’s in Preferences -> Settings - More -> Syntax Specific - User. It will open settings file that applies only to the type of the file you are currently working with.

2 Likes