emmetio / sublime-tern

TernJS plugin for Sublime Text
222 stars 13 forks source link

autocompletion on dot? #38

Closed chenglou closed 10 years ago

chenglou commented 10 years ago

(Maybe this is a sublime text feature I haven't discovered) is there a way to do this? The blog post mentions ST preference. Thanks.

sergeche commented 10 years ago

In ST Preferences file, set auto_complete_triggers preference like so:

"auto_complete_triggers": [
    {
        "characters": ".",
        "selector": "source.js"
    }
]
chenglou commented 10 years ago

That was easy. Thanks!