Skip to content

Commit 5868fb8

Browse files
authored
Merge pull request continuedev#4857 from continuedev/dallin/launch-docs
Actions/Deep Dive Docs Updates
2 parents ae9c97c + 174c332 commit 5868fb8

19 files changed

+257
-424
lines changed

docs/docs/actions/context-selection.md

-32
This file was deleted.

docs/docs/actions/how-it-works.mdx

-12
This file was deleted.

docs/docs/actions/how-to-customize.md

-10
This file was deleted.

docs/docs/actions/how-to-use-it.md

-65
This file was deleted.

docs/docs/actions/model-setup.md

-10
This file was deleted.

docs/docs/customize/deep-dives/configuration.md

+13-5
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,23 @@ keywords: [config, settings, customize]
55

66
# Configuration
77

8+
You can easily access your assistant configuration from the Continue Chat sidebar. Open the sidebar by pressing <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains) and click the Assistant selector above the main chat input. Then, you can hover over an assistant and click the `new window` (hub assistants) or `gear` (local assistants) icon.
9+
10+
![configure an assistant](/img/configure-continue.png)
11+
12+
## Hub Assistants
13+
14+
Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md)
15+
816
## YAML Config
917

10-
Continue can be deeply customized. Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
18+
Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
1119

1220
To open `config.yaml`, you can click the "gear" icon in the header of the Continue Chat sidebar to open the settings page, and then click `Open Assistant configuration` to open the file. When editing this file, you can see the available options suggested as you type, or check the reference below.
1321

1422
- `~/.continue/config.yaml` (MacOS / Linux)
1523
- `%USERPROFILE%\.continue\config.yaml` (Windows)
1624

17-
To open your configuration file, you can click the "gear" icon in the bottom right corner of the Continue Chat sidebar. When editing this file, you can see the available options suggested as you type, or check the reference below.
18-
1925
When you save a config file from the IDE, Continue will automatically refresh to take into account your changes. A config file is automatically created the first time you use Continue, and always automatically generated with default values if it doesn't exist.
2026

2127
See the full reference for `config.yaml` [here](../../reference.md).
@@ -49,7 +55,9 @@ Example
4955

5056
### `config.ts`
5157

52-
To programatically extend `config.json`, you can place a `config.ts` script in same directory as `config.json` and export a `modifyConfig` function, like:
58+
`config.yaml` or `config.json` can handle the vast majority of necessary configuration, so we recommend using it whenever possible. However, if you need to programmatically extend Continue configuration, you can use a `config.ts` file, placed at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows).
59+
60+
`config.ts` must export a `modifyConfig` function, like:
5361

5462
```ts title="config.ts"
5563
export function modifyConfig(config: Config): Config {
@@ -75,4 +83,4 @@ export function modifyConfig(config: Config): Config {
7583
}
7684
```
7785

78-
This can be used for slash commands and custom context providers.
86+
For examples of how to use `config.ts`, see [writing custom slash commands](../tutorials/build-your-own-slash-command.md#custom-slash-commands) or [writing custom context providers](../tutorials/build-your-own-context-provider.mdx).
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
---
2+
title: Slash commands
3+
description: Shortcuts that can be activated by prefacing your input with '/'
4+
keywords: [slash command, custom commands, step]
5+
---
6+
7+
import TabItem from "@theme/TabItem";
8+
import Tabs from "@theme/Tabs";
9+
10+
![actions](/img/actions.gif)
11+
12+
## Slash commands
13+
14+
Slash commands are shortcuts that can be activated by typing '/' in a chat session (press <kbd>cmd/ctrl</kbd> + <kbd>L</kbd> (VS Code) or <kbd>cmd/ctrl</kbd> + <kbd>J</kbd> (JetBrains)), and selecting from the dropdown.
15+
{/* ![slash-commands](/img/slash-commands.png) */}
16+
17+
Slash commands can be combined with additional instructions, including [context providers](../context-providers.mdx) or [highlighted code](../../edit/context-selection#highlighted-code).
18+
19+
## Prompts
20+
21+
### Assistant prompt blocks
22+
23+
The easiest way to add a slash command is by adding [`prompt` blocks](../../hub/blocks/block-types.md#prompts) to your assistant, which show up as slash commands in [Chat](../../chat/how-it-works.md).
24+
25+
### Prompt files
26+
27+
It is also possible to write your own slash command by defining a “.prompt file.” Prompt files can be as simple as a text file, but also include templating so that you can refer to files, URLs, highlighted code, and more.
28+
29+
Learn more about prompt files [here](./prompt-files.md)
30+
31+
### MCP Server prompts
32+
33+
Any prompts provided by [Model Context Protocol](https://modelcontextprotocol.io/introduction) servers are also accessible in chat as Slash Commands. See the [MCP Server Deep Dive](./mcp.mdx) for more details.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
---
2+
title: VS Code Actions
3+
description: VS Code Actions
4+
keywords: [vscode, quick actions, quick, actions]
5+
---
6+
7+
### Other triggers for Actions (VS Code)
8+
9+
:::info
10+
Currently all of these are only available in VS Code
11+
:::
12+
13+
To make common use cases even more accessible, we provide a handful of other ways to invoke actions in VS Code.
14+
15+
## Quick actions
16+
17+
Quick Actions are displayed as buttons above top-level classes and functions in your source code, letting you invoke actions with one click. They will edit that class or function, but nothing outside of it. They can also be customized with [.prompt files](./prompt-files.md) to perform custom actions.
18+
19+
![quick-actions](/img/quick-actions.png)
20+
21+
By default, quick actions are disabled, but can be enabled with the “Continue: Enable Quick Actions” in VS Code settings.
22+
23+
## Right click actions
24+
25+
Right click actions let you highlight a desired region of code, right click, and then select an action from the dropdown menu.
26+
27+
The highlighted code you’ve selected will be included in your prompt alongside a pre-written set of instructions depending on the selected action. This is the only section of code that the model will attempt to edit.
28+
29+
Right click actions that generate inline diffs use the same prompt and response processing logic as [Edit](../../edit/how-it-works.md).
30+
31+
![context-menu](/img/context-menu.png)
32+
33+
## Debug action
34+
35+
The debug action is a special built-in keyboard shortcut in the VS Code extension. Use <kbd>cmd/ctrl</kbd> + <kbd>shift</kbd> + <kbd>R</kbd> to instantly copy the contents of the most recent terminal output into the chat sidebar and get debugging advice. There is no additional, non-visible information sent to the language model.
36+
37+
```
38+
I got the following error, can you please help explain how to fix it?
39+
40+
[ERROR_MESSAGE]
41+
```
42+
43+
## Quick fixes
44+
45+
Whenever you see red/yellow underlines in your code indicating errors, you can place your cursor nearby and VS Code will display a lightbulb icon. Either clicking the lightbulb or using the keyboard shortcut <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> will show a dropdown menu of quick fixes. One of these will be the “Ask Continue” action. Either click or use <kbd>cmd/ctrl</kbd> + <kbd>.</kbd> again and Continue will attempt to help solve the problem.
46+
47+
Similarly to the debug action, quick actions transparently inject a prompt into the chat window. When you select “Ask Continue”, the 3 lines above and below the error are sent to the chat followed by the question “How do I fix the following problem in the above code?: [ERROR_MESSAGE]”.
48+
49+
![ask-continue](/img/ask-continue.png)

docs/docs/customize/model-providers/more/nebius.mdx

+4-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ Available models can be found on the [Nebius AI Studio models page](https://stud
1515
<TabItem value="yaml" label="YAML">
1616
```yaml title="config.yaml"
1717
models:
18-
- name: Llama 3.1 405b
18+
- name: DeepSeek R1
1919
provider: nebius
20-
model: llama3.1-405b
20+
model: deepseek-ai/DeepSeek-R1
2121
apiKey: <YOUR_NEBIUS_API_KEY>
2222
```
2323
</TabItem>
@@ -26,9 +26,9 @@ Available models can be found on the [Nebius AI Studio models page](https://stud
2626
{
2727
"models": [
2828
{
29-
"title": "Llama 3.1 405b",
29+
"title": "DeepSeek R1",
3030
"provider": "nebius",
31-
"model": "llama3.1-405b",
31+
"model": "deepseek-ai/DeepSeek-R1",
3232
"apiKey": "<YOUR_NEBIUS_API_KEY>"
3333
}
3434
]

0 commit comments

Comments
 (0)