emmetio / sublime-tern

TernJS plugin for Sublime Text
222 stars 13 forks source link

Autocompletion in HTML - tag issue #45

Open ghost opened 9 years ago

ghost commented 9 years ago

Hello! I would like to share the way i make TernJS work correctly in HTML file.

The issue: after make TernJS working in HTML ("syntax_scopes": "source.js, text.html") we have very strange thing with tags autocompletion (script autocompletion inside works fine) - there are no tag names in autocomplete suggestion:

pic1

Solution: i've disabled default trigger on "<" character (removed {"selector": "text.html", "characters": "<"} from preferences)

now i have: { "auto_complete_triggers": [ {"selector": "source.js", "characters": "."} ] }

and everything works excellent: pic2

vstephenzhou commented 9 years ago

great! thank you! @runningstream o(^ 。^)o