Javascript intellisense in ACE editor

爱⌒轻易说出口 提交于 2019-12-04 13:05:15

问题


TL;DR

I need intelligent autocompletion/intellisense for JavaScript in ACE Editor.

Explanation

I am creating an online IDE for JavaScript using ACE Editor. Is there any library or open-source project that allows intelligent autocompletion for JavaScript.

JavaScript is a dynamic language, intellisense integration is trivial for such languages (TypeScript does support this). ACE editor only supports basic autocompletition (like Sublime Text) using enableBasicAutocompletion.

I need intelligent autocompletion, an engine that parses the javascript in backend in realtime and provides suggestions.

Any help regarding this issue would be appreciated.

Thanks.


回答1:


Try tern extension for Ace from https://github.com/angelozerr/tern.ace/

update: a better version at https://github.com/sevin7676/Ace.Tern with a demo http://sevin7676.github.io/Ace.Tern/demo.html



来源:https://stackoverflow.com/questions/26239090/javascript-intellisense-in-ace-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!