Skip to contents

Inspects the current editor context — cursor position and any selection — and automatically chooses and executes one of five modes: complete, continue, generate, edit, or comment. Results are presented as ghost text or an edit suggestion directly in the source editor.

Usage

codriver()

Value

Returns TRUE invisibly on success. Returns FALSE invisibly if RStudio is not available, no configuration is found, or the mode cannot be resolved.

Details

Codriver is intended to be invoked via a keyboard shortcut Ctrl+/ (default) or the RStudio Addins menu, not called directly. Use codriver_configure() to set up a provider and register the recommended shortcut before first use.

See also