Imagine an agentic LLM model that is integrated with an IDE, like VSCode. How do I tell…
- User
Imagine an agentic LLM model that is integrated with an IDE, like VSCode. How do I tell it to stop leaving comments in the generated code? For example, I might ask it to generate an algorithm that integrates within the current project I might have. Problem is, instead of re-writing, it leaves comments like:
function foo(): /* code is same as before */
function foo2(): /* keep code as before */
How do i tell it to stop repeating this behavior, in a single concise instruction?
Assistant
Here are a few concise instructions you can try, ordered from most direct to slightly more descriptive:
- "Generate the full, complete code; do not use placeholder comments for unchanged sections." (Directly forbids the specific behavior)
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.