autoComplete
autoComplete(
config
):BasicExtension
Defined in: extensions/autocomplete/tooltip.ts:57
Extension adding basic autocomplete to an editor. For autocompletion to work, you need to registerCompletions for specific languages.
Parameters
Section titled “Parameters”config
Section titled “config”Object used to configure the extension. The filter
property is required.
Requires the cursorPosition extension to work.
Requires styling from prism-code-editor/autocomplete.css
in addition to a stylesheet
for icons. prism-code-editor/autocomplete-icons.css
adds some icons from VSCode, but
you can use your own icons instead.
Returns
Section titled “Returns”Completion.icon for how to style your own icons.