Skip to content

Instantly share code, notes, and snippets.

@dhruvpsaru
Created November 18, 2016 12:14
Show Gist options
  • Save dhruvpsaru/16f83a79d8487e20732cf9b65756b873 to your computer and use it in GitHub Desktop.
Save dhruvpsaru/16f83a79d8487e20732cf9b65756b873 to your computer and use it in GitHub Desktop.
How to enable autocomplete in ace editor

How to enable autocomplete in ace editor

Make sure to have following imports

    require('ace/ext/language_tools');
    require('ace/multi_select');

Use under snippet as required

    editor.setOptions({
                enableBasicAutocompletion: true,
                enableSnippets: true,
                enableLiveAutocompletion: true
            });

enableLiveAutocompletion will enable autocompletion while you type, else you have to hit Ctrl+space

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment