im doing a plugin to the cloud 9 sdk its basically a simple autocomplete for c language
my issue is that when i complete the name of the function the ide doesn't reserve the change meaning the next time he edit the line it will go back to before the line was edited
for example if i write pri
then selected printf
then pressed space it will be "pri "
not "printf "
here is my code
here is what i found
ace.scrollTo(row, column);
clipboard.clipboardData.setData("text/plain", "text to add");
clipboard.paste();
you will need to include clipboard
and ace
to consumes for that code to work