JavaScript tern,一个 JS 的补全引擎

edgar_wang_cn · August 08, 2013 · Last by sanivbyfish replied at August 09, 2013 · 5854 hits

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:

  • Autocompletion on variables and properties
  • Function argument hints
  • Querying the type of an expression
  • Finding the definition of something
  • Automatic refactoring

Vim 上用这货配上 syntastic 和 jslint,写 JS 实在是爽,基本上赶上 IDE 的功能了。 放一个官方的 demo: http://ternjs.net/doc/demo.html

一般上了这种东西以后,Vim 就成了 Eclipce 了

#1 楼 @huacnlee 比 Eclipse 什么的轻便多了

#2 楼 @edgar_wang_cn 网页上那个提示的很不错

#3 楼 @huacnlee 是指 Demo 里的补全什么的么?

#1 楼 @huacnlee eclipse。。。。笑而不语

You need to Sign in before reply, if you don't have an account, please Sign up first.