With the plugin Autocompletors comes the possibility to use a text autocomplete in GroIMP text editors.
Completors available:
SimpleStatic: The completions included comes from the
function browser. It also includes all classes from IMP3D objects and turtle commands. When a project is recompiled, its modules and static fields are added to the completions. Warning there is not notion of scope in this completor, i.e. it do not check if a completion is available at a
java level.
Antlr4Simple: in development completor. It suggests completions based on the scope and context of the caret. It is based on a parser written in ANTLR 4. The development of the antlr parser and scope builder is available
here.
How to select a completor
Text completors are selected in the options (see how to use the preference panel).
Options
Currently available options:
Display description popup: It enables/disables the description popup next to the completion popup.
Automatically complete words with only one completion: Words with only one completion available will be autocompleted automatically when the completion is triggered (CTRL +SPACE by default).
How to use it
To make the completion, you press CTRL + Space
. The possible completions will appear in a popup, by pressing Enter
the selected completion will be inserted in the text.
It is possible to use the arrows UP
and DOWN
when the popup is open to select other completions.