config guide udpates

This commit is contained in:
Dallin Romney 2025-03-27 08:06:00 -07:00
parent 91d771f6ef
commit 0b67ee4d3a
3 changed files with 17 additions and 35 deletions

View file

@ -5,17 +5,23 @@ keywords: [config, settings, customize]
# Configuration
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.
![configure an assistant](/img/configure-continue.png)
## Hub Assistants
Hub Assistants can be managed in [the Hub](https://hub.continue.dev). See [Editing an Assistant](../../hub/assistants/edit-an-assistant.md)
## YAML Config
Continue can be deeply customized. Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
Local user-level configuration is stored and can be edited in your home directory in `config.yaml`:
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.
- `~/.continue/config.yaml` (MacOS / Linux)
- `%USERPROFILE%\.continue\config.yaml` (Windows)
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.
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.
See the full reference for `config.yaml` [here](../../reference.md).
@ -49,7 +55,9 @@ Example
### `config.ts`
To programatically extend `config.json`, you can place a `config.ts` script in same directory as `config.json` and export a `modifyConfig` function, like:
`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).
`config.ts` must export a `modifyConfig` function, like:
```ts title="config.ts"
export function modifyConfig(config: Config): Config {
@ -75,4 +83,4 @@ export function modifyConfig(config: Config): Config {
}
```
This can be used for slash commands and custom context providers.
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).

View file

@ -16,35 +16,9 @@ Whatever you choose, you'll probably start by editing your Assistant.
## Editing your assistant
Most custom configuration is done by editing `config.yaml` (or the deprecated `config.json`). This is a YAML file that allows you to customize Continue to your liking. It is found at:
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.
- MacOS and Linux: `~/.continue/config.yaml`
- Windows: `%USERPROFILE%\.continue\config.yaml`
![configure an assistant](/img/configure-continue.png)
You can easily access config file 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 "gear" icon in header to open the Settings page. Then click the button labeled `Open Assistant configuration`.
![configure-continue](/img/configure-continue.png)
When editing this file, you can see the available options suggested as you type, or you can check the [full reference](./deep-dives/configuration.md).
:::info
A configuration file is created the first time you use Continue. If you'd like to reset your configuration to the default, you can delete this file and Continue will automatically recreate it with the default settings.
:::
:::info
When you save a configuration file from the IDE, Continue will automatically refresh to take into account your changes.
:::
## Per-workspace configuration
If you'd like to scope certain settings to a particular workspace, you can add a `.continuerc.json` to the root of your project. It has the same [definition](./deep-dives/configuration.md) as `config.json`, and will automatically be applied on top of the local config.json.
## Programmatic configuration
`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 configure Continue, you can use `config.ts`, which is located at `~/.continue/config.ts` (MacOS / Linux) or `%USERPROFILE%\.continue\config.ts` (Windows).
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).
- See [Editing Hub Assistants](../hub/assistants/edit-an-assistant.md) for more details on managing your hug assistant
- See the [Config Deep Dive](./deep-dives/configuration.md) for more details on configuring local assistants.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 6.7 KiB

After

Width:  |  Height:  |  Size: 58 KiB