Search code examples
ace-editor

What does enableBasicAutocompletion for Ace Editor do?


What does the enableBasicAutocompletion option for Ace editor do? I tried setting it to true and false but were not able to observe any difference.

enableLiveAutocompletion does show a drop down list of suggestions for me when enabled.

This is how I am setting the options: ace.js and ext-language_tools.js are loaded.

Then:

    ace.require("ace/ext/language_tools");
    var editor = ace.edit('someid');

    editor.setOptions({
        maxLines: Infinity,
        minLines: 7,
        enableBasicAutocompletion: true,
        enableLiveAutocompletion: true
    });

    editor.setTheme("ace/theme/tomorrow");
    editor.getSession().setMode("ace/mode/javascript");

Solution

  • It enables opening popup with ctrl-space see https://github.com/ajaxorg/ace/blob/v1.1.4/lib/ace/ext/language_tools.js#L175