最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Sublime Text, On Object Dot Show Intellisense - Stack Overflow

programmeradmin2浏览0评论

I just installed TernJS and I can get intellisense by entering ctrl+space. However, I want to get intellisense, autoplete, options when I enter a dot after an object in JavaScript.

I tried the following without luck

"auto_plete_selector": "source, text",

I tried the suggestions in Sublime Text 2 auto pletion popup does not work properly without luck

Any suggestions?

I just installed TernJS and I can get intellisense by entering ctrl+space. However, I want to get intellisense, autoplete, options when I enter a dot after an object in JavaScript.

I tried the following without luck

"auto_plete_selector": "source, text",

I tried the suggestions in Sublime Text 2 auto pletion popup does not work properly without luck

Any suggestions?

Share Improve this question edited May 23, 2017 at 12:15 CommunityBot 11 silver badge asked Nov 19, 2013 at 4:11 iWarrioriWarrior 1951 silver badge10 bronze badges 2
  • Possible dup: stackoverflow./questions/11360659/… – megawac Commented Nov 19, 2013 at 4:13
  • Not a duplicate, as I mentioned, I can get autoplete - sometimes called intellisense - to work. However, my problem lies in getting the the drop down intellisense choices after entering a dot. BTW, this is a mon functionality for IDEs. – iWarrior Commented Nov 19, 2013 at 4:35
Add a ment  | 

1 Answer 1

Reset to default 13

Go to Preferences -> Settings - User and add the following (remove the last ma if it's the last entry in the array):

"auto_plete": true,
"auto_plete_mit_on_tab": true,
"auto_plete_selector": "source, meta.tag", // you can make this "source - ment, meta.tag" if you don't want autoplete in ments
"auto_plete_triggers": [
    {"selector": "text.html", "characters": "<"},
    {"selector": "source, text.html", "characters": "."}
],

and you should be all set.

BTW, "IntelliSense" is a trademark of Microsoft, in other contexts it's just called auto-plete or autoplete.

发布评论

评论列表(0)

  1. 暂无评论