Monday, May 20, 2024
 Popular · Latest · Hot · Upcoming
180
rated 0 times [  185] [ 5]  / answers: 1 / hits: 51400  / 12 Years ago, sat, november 24, 2012, 12:00:00

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:
https://c9.io/site/features/



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


More From » html

 Answers
23

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



ace.require(ace/ext/language_tools);
var editor = ace.edit(editor);
editor.setOptions({
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:



https://github.com/ajaxorg/ace/wiki/How-to-enable-Autocomplete-in-the-Ace-editor


[#81821] Friday, November 23, 2012, 12 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
dominiqued

Total Points: 189
Total Questions: 122
Total Answers: 103

Location: Ghana
Member since Sun, Mar 27, 2022
2 Years ago
;