# Interface ICodeAutocompleter OptimaJet.Workflow.Core.Runtime.CodeAutocomplete.ICodeAutocompleter Provides an abstraction for components that can provide code completion suggestions. Namespace: [OptimaJet.Workflow.Core.Runtime.CodeAutocomplete](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.CodeAutocomplete/) ```csharp public interface ICodeAutocompleter ``` ## Type Hierarchy - ICodeAutocompleter Current type - Implementing types - [DefaultAutocompleter](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.CodeAutocomplete/DefaultAutocompleter/) ## Properties `string AutocompleterName { get; }` Gets the unique name of the autocompleter. `bool Initialized { get; }` Gets a value indicating whether the autocompleter has completed initialization. ## Methods `HashSet Get(string pattern, IEnumerable usings, IEnumerable variables)` Gets completion suggestions that match the provided search pattern. ### Parameters | Name | Type | Description | | --- | --- | --- | | `pattern` | `String` | Text to match, for example `System.Thr`. | | `usings` | `IEnumerable` | Namespaces currently in scope, such as `System` or `System.Threading`. | | `variables` | `IEnumerable` | Variables available for completion candidate generation. | ### Returns | Type | Description | | --- | --- | | `HashSet` | A set of matching autocomplete items. | `void InitIfNotInitialized()` Initializes the autocompleter if it has not yet been initialized. `void AddVariables(IEnumerable variables)` Adds additional variables to the autocomplete index. ### Parameters | Name | Type | Description | | --- | --- | --- | | `variables` | `IEnumerable` | Variables to include in completion suggestions. | [Previous ICodeAutocompleteProvider](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.CodeAutocomplete/ICodeAutocompleteProvider/) [Next ITypeSearcher](https://api.workflowengine.io/core/OptimaJet.Workflow.Core.Runtime.CodeAutocomplete/ITypeSearcher/)