问题
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