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.
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
codriver_configure()to set up the LLM provider and recommended keyboard shortcutvignette("getting-started-with-codriver")for extended information on configuring codrivervignette("start-using-codriver")for an overview of modes and result presentation
