How can I give my console autocomplete function

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Juan

I want to add an autocomplete feature that automatically shows the piece of code that the user is typing within the line edit, so that it appears before it is written. I already have a console I just want to implement this feature.

Many thanks,