Retext
ContinueCopilot

Continue Prompt Templates

Prompts that work well in Continue, with the setup steps that matter in this tool. Use @ context providers to add files, the current selection or other context, so the model sees the code in question. Start with the general brief below, or pick a task-specific prompt from the related list.

Installs as a snippet — type ;continue to paste this prompt anywhere on your Mac.
Prompt Template
I'm working in Continue and need help with [describe the task in one sentence].

What I have:
- [the code, document or data involved]
- [what I've tried so far]

What a good result looks like:
- [the outcome you want]
- [constraints: style, length, libraries, deadlines]

Before you start, list any assumptions you're making. Then give the result, followed by one sentence on how to check it.

Context
- Files involved: [list the files, or reference them in the chat]
- How I build and test: [e.g. npm test]

How to use this prompt

  1. 1

    Open Continue

    Open the Continue chat panel in VS Code or JetBrains and paste the prompt.

  2. 2

    Give it context

    Use @ context providers to add files, the current selection or other context, so the model sees the code in question.

  3. 3

    Review and iterate

    Apply suggested edits after reading them and keep follow-ups in the same chat.

  4. 4

    Save what you repeat

    Continue is configurable, so you can save a prompt you reuse as a custom command or prompt file.

Working in Continue

  • •Continue is open source and model-agnostic. Results depend on the model you connected, so test the prompt with the model you plan to use.
  • •Select the code before you ask, so the answer is about that code.
  • •Smaller local models do better with shorter prompts; trim optional sections if replies wander.

Example task: Bug Fix

What you give it

Expected: average([]) returns 0.
Actual: ZeroDivisionError: division by zero
Language: Python 3.12

def average(nums):
    total = 0
    for n in nums:
        total += n
    return total / len(nums)

Already ruled out: nums is always a list, never None. It only fails when a user has no orders yet.

What a good answer looks like (shortened)

1. Root cause: when nums is empty, len(nums) is 0, so the return line divides by zero.

2. Fixed code:
def average(nums):
    if not nums:
        return 0
    return sum(nums) / len(nums)

3. Why it works: the guard returns before any division happens. sum() replaces the manual loop and gives the same result for non-empty lists.

4. Check:
assert average([]) == 0
assert average([2, 4]) == 3.0

Tips for better results

  • •Use @ context providers to add files, the current selection or other context, so the model sees the code in question.
  • •Apply suggested edits after reading them and keep follow-ups in the same chat.
  • •Continue is configurable, so you can save a prompt you reuse as a custom command or prompt file.
  • •Continue is open source and model-agnostic. Results depend on the model you connected, so test the prompt with the model you plan to use.

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.

Variations

Plan first

Add this line: Before changing anything, give me a numbered plan and wait for my OK.

Explain as you go

Add this line: After the result, explain the two decisions that matter most and why you made them.

Starter task (Bug Fix)

Fix with a regression test: Add this line under Output format: 5. A unit test that fails on the old code and passes on the fixed code.

Save it as a Retext snippet

Retext is a free text expander for Mac. Save this prompt once, then type ;continue in any app (ChatGPT, Claude, your editor, a browser tab) and the full prompt is pasted in.

  1. Click Add to Retext. The prompt installs as a snippet with the trigger ;continue.
  2. Change the trigger in Retext if you prefer a different one.
  3. Type the trigger wherever you want the prompt, then fill in the brackets.

Frequently asked questions

Does the prompt change with the model I use in Continue?

The wording stays the same, but quality varies by model. If a smaller model struggles, cut optional sections and ask for one step at a time.

Can I save this prompt inside Continue?

Yes, as a custom command or prompt in Continue's configuration. A Retext snippet works across every app, including Continue.

How do I reuse this prompt without copying it every time?

Click Add to Retext to save it as a snippet. Then type ;continue in any Mac app, including your AI tool, and the full prompt is pasted in.

Related Templates

Get the free prompt pack

Our best coding prompts in one Markdown file, delivered by email. The templates here stay free either way — the pack just saves you the copying.