Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Javascript intellisense in ACE editor

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.

like image 598
Ali Ashraf Avatar asked Oct 07 '14 15:10

Ali Ashraf


1 Answers

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

like image 174
a user Avatar answered Sep 22 '22 21:09

a user