Interface IEditorInlayHintsOptions

Expand description

Configuration options for editor inlayHints

interface IEditorInlayHintsOptions {
    enabled?:
        | "off"
        | "on"
        | "offUnlessPressed"
        | "onUnlessPressed";
    fontFamily?: string;
    fontSize?: number;
    maximumLength?: number;
    padding?: boolean;
}

Properties§

§enabled?: "off" | "on" | "offUnlessPressed" | "onUnlessPressed"

Enable the inline hints. Defaults to true.

§fontFamily?: string

Font family of inline hints. Defaults to editor font family.

§fontSize?: number

Font size of inline hints. Default to 90% of the editor font size.

§maximumLength?: number

Maximum length for inlay hints per line Set to 0 to have an unlimited length.

§padding?: boolean

Enables the padding around the inlay hint. Defaults to false.