我刚刚安装了TernJS,我可以通过输入ctrl+space获得智能感知。但是,当我在JavaScript中的对象后面输入一个点时,我想获得intellisense,自动完成,选项。
我没碰运气就试了下面的
"auto_complete_selector":“源,文本”,
我在Sublime Text 2 auto completion popup does not work properly中尝试了这些建议,但没有成功
有什么建议吗?
发布于 2013-11-19 14:31:01
转到Preferences -> Settings - User并添加以下内容(如果最后一个逗号是数组中的最后一个条目,则删除它):
"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": "."}
],你应该都准备好了。
顺便说一句,"IntelliSense“是微软的商标,在其他情况下,它被称为自动完成或自动完成。
https://stackoverflow.com/questions/20063047
复制相似问题