User Tools

Site Tools


01_user_documentation:03_interacting_with_groimp:40_additional:01_autocompletion

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.

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.
  • Change Key activation: CTRL +SPACE by default, can be rebinded
01_user_documentation/03_interacting_with_groimp/40_additional/01_autocompletion.txt · Last modified: 2025/11/01 08:54 by gaetan