Table of Contents
Autocompletion
With the plugin Autocompletors comes the possibility to use a text autocomplete in GroIMP text editors.
Text completors are selected in the options (see how to use the preference panel).
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.
Static
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.
Scope based
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. The first completion in a project is always slow as it build the scope for the default imports. Then, each completions should be faster. The speed can be an issue for big project. Note that “import my.package.lib.* ” are quite slow to process.

