Interface IInlineSuggestOptions

interface IInlineSuggestOptions {
    enabled?: boolean;
    fontFamily?: string;
    keepOnBlur?: boolean;
    mode?: "prefix" | "subword" | "subwordSmart";
    showToolbar?: "always" | "never" | "onHover";
    suppressSuggestions?: boolean;
}

Properties

enabled?: boolean

Enable or disable the rendering of automatic inline completions.

fontFamily?: string

Font family for inline suggestions.

keepOnBlur?: boolean

Does not clear active inline suggestions when the editor loses focus.

mode?: "prefix" | "subword" | "subwordSmart"

Configures the mode. Use prefix to only show ghost text if the text to replace is a prefix of the suggestion text. Use subword to only show ghost text if the replace text is a subword of the suggestion text. Use subwordSmart to only show ghost text if the replace text is a subword of the suggestion text, but the subword must start after the cursor position. Defaults to prefix.

showToolbar?: "always" | "never" | "onHover"
suppressSuggestions?: boolean