Skip to main content

Slash commands

Slash commands are shortcuts that can be activated by typing '/' and selecting from the dropdown. For example, the built-in '/edit' slash command lets you stream edits directly into your editor.

slash-commands

Built-in Slash Commands

To use any of the built-in slash commands, open ~/.continue/config.json and add it to the slashCommands list.

/edit

Select code with ctrl/cmd + L (VS Code) or ctrl/cmd + J (JetBrains), and then type "/edit", followed by instructions for the edit. Continue will stream the changes into a side-by-side diff editor.

{
"name": "edit",
"description": "Edit highlighted code"
}

/comment

Comment works just like /edit, except it will automatically prompt the LLM to comment the code.

{
"name": "comment",
"description": "Write comments for the highlighted code"
}

/share

Type "/share" to generate a shareable markdown transcript of your current chat history.

{
"name": "share",
"description": "Export the current chat session to markdown",
"params": { "outputDir": "~/.continue/session-transcripts" }
}

Use the outputDir parameter to specify where you want to the markdown file to be saved.

/cmd

Generate a shell command from natural language and (only in VS Code) automatically paste it into the terminal.

{
"name": "cmd",
"description": "Generate a shell command"
}

/commit

Shows the LLM your current git diff and asks it to generate a commit message.

{
"name": "commit",
"description": "Generate a commit message for the current changes"
}

/http

Write a custom slash command at your own HTTP endpoint. Set 'url' in the params object for the endpoint you have setup. The endpoint should return a sequence of string updates, which will be streamed to the Continue sidebar. See our basic FastAPI example for reference.

{
"name": "http",
"description": "Does something custom",
"params": { "url": "<my server endpoint>" }
}

/issue

Describe the issue you'd like to generate, and Continue will turn into a well-formatted title and body, then give you a link to the draft so you can submit. Make sure to set the URL of the repository you want to generate issues for.

{
"name": "issue",
"description": "Generate a link to a drafted GitHub issue",
"params": { "repositoryUrl": "https://github.com/continuedev/continue" }
}

/so

The StackOverflow slash command will automatically pull results from StackOverflow to answer your question, quoting links along with its answer.

{
"name": "so",
"description": "Reference StackOverflow to answer the question"
}

/onboard

The Onboard slash command helps to familiarize yourself with a new project by analyzing the project structure, READMEs, and dependency files. It identifies key folders, explains their purpose, and highlights popular packages used. Additionally, it offers insights into the project's architecture.

{
"name": "onboard",
"description": "Familiarize yourself with the codebase"
}