% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/addins.R
\name{addin_generate_with_preview}
\alias{addin_generate_with_preview}
\title{Generate R code with an editable preview dialog}
\usage{
addin_generate_with_preview()
}
\value{
Invisible \code{NULL} (called for side-effects).
}
\description{
Same as \code{\link[=addin_generate_from_comment]{addin_generate_from_comment()}} but opens a Shiny gadget so you can
review and optionally edit the generated code before it is inserted into the
editor.  Recommended shortcut: \code{Ctrl+Shift+P} / \code{Cmd+Shift+P}.
}
\details{
The preview dialog shows the generated code in an editable text area.
Click \strong{Insert} to place it in the editor, or close the dialog to discard
the result.
}
\seealso{
\code{\link[=addin_generate_from_comment]{addin_generate_from_comment()}}, \code{\link[=llmcoder_setup]{llmcoder_setup()}}
}
