Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Live autocomplete in Codemirror

It seems that Codemirror plugin show-hint is activated by shortcut. I need to implement live autocomplete functionality, i.e. show hints after user entered first letters of keyword. Is there a way to do this with Codemirror?

like image 739
Eugene Krakos Avatar asked Jan 24 '18 09:01

Eugene Krakos


1 Answers

Yes, there is a way to do this with CodeMirror. You can see the description of the addon for this here. CodeMirror offers the hint/show-hint.js addon that allows you to display hints when a keyboard short-cut is used.

You can find additional information on adding hints in this StackOverflow question as well.

Additionally, you can checkout their demo here.

like image 62
mootrichard Avatar answered Oct 10 '22 09:10

mootrichard