Sublime Text, On Object Dot Show Intellisense

I just installed TernJS and I can get intellisense by typing ctrl + space. However, I want to get intellisense, autocomplete, options when I enter the dot after the object in JavaScript.

I tried the following with no luck

"auto_complete_selector": "source, text",

I tried the suggestions in Sublime Text 2 Popup Popup does not work properly without luck

Any suggestions?

+8
javascript autocomplete sublimetext intellisense
source share
1 answer

First, to get the most out of autocomplete, install Package Management , restart, then install SublimeCodeIntel and restart. The memory issues mentioned in some of these early issues since 2012 have been fixed. However, you will need to wait for SCI to index your project and turn it on, which may take some time.

Then go to Preferences -> Settings - User and add the following (remove the last comma if it is the last entry in the array):

 "auto_complete": true, "auto_complete_commit_on_tab": true, "auto_complete_selector": "source, meta.tag", // you can make this "source - comment, meta.tag" if you don't want autocomplete in comments "auto_complete_triggers": [ {"selector": "text.html", "characters": "<"}, {"selector": "source, text.html", "characters": "."} ], 

and everything should be installed.

BTW, "IntelliSense" is a trademark of Microsoft; in other contexts, it is simply referred to as AutoFill or AutoFill.

+11
source share

All Articles