Wojciech Danilo Wojciech Danilo - 1 year ago 195
Javascript Question

Autocompletion in ACE editor

I've found simmilar question: Ace Editor autocomplete and multiple languages

But the responses were that autocompletion is not supported by ACE, and according to Google group for Ace Editor "It is on my wishlish for Ace and we definitively need it
for Cloud9".

This post is one year old and as you can see, the cloud9 supports autocompletion now:

So is autocompletion available in Ace Editor by default? I cannot find any information about it.

Answer Source

Autocomplete is now an official part of the API. Enabling it takes 3 lines of code:

var editor = ace.edit("editor");
    enableBasicAutocompletion: true

Depending on your setup with require-js, you may also need to include an additional javascript file in the html for your page:

<script src="ace/ext-language_tools.js"></script>

You can find a demo at https://github.com/ajaxorg/ace/blob/master/demo/autocompletion.html

And here's the wiki page I just wrote on the topic:


Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download