sublime text 3 装什么插件能提示自定义的函数

  • 比如我自己定义了个js的函数func(),需要装什么样的插件才能自动提示呢?
  • 还有一个问题,比如我想引入一个js文件,但是用bower安装的话,路径可能会很深,一个一个手动输入不仅慢还容易出错,有什么插件能方便的引入的吗?

Thanks for your answer!

阅读 8.9k
2 个回答

可以试试ternjs

Tern is a stand-alone code-analysis engine for JavaScript. It is intended to be used with a code editor plugin to enhance the editor's support for intelligent JavaScript editing. Features provided are:

  1. Autocompletion on variables and properties
  2. Function argument hints
  3. Querying the type of an expression
  4. Finding the definition of something
  5. Automatic refactoring

第一个:sublimecodeintel
第二个:你在插件中心搜索file应该能搜到,我在公司电脑有安装,忘了名字了!

撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进