Elffuss BraidHub

kikocis/continue public

e8ee99375f3e · 827 BRenderedRawPermalink
1---
2title: 如何定制
3description: 如何定制自动补全
4keywords: [定制]
5sidebar_position: 5
6---
7
8Continue 在 [`config.json`](../reference.md) 提供少量的参数,对于你的特定需求和硬件能力,可以调整找到建议质量和系统性能之间的最佳平衡:
9
10```json title="config.json"
11 "tabAutocompleteOptions": {
12 "maxPromptTokens": 400,
13 "prefixPercentage": 0.5,
14 "multilineCompletions": "always"
15 }
16```
17
18- `maxPromptTokens`: 设置提示词的最大 token 数,平衡上下文和速度
19- `prefixPercentage`: 决定提示词使用光标前代码的比例
20- `multilineCompletions`: 控制建议是否可以跨多行 ("always", "never" 或 "auto")
21
22对于所有配置选项和它们的影响的综合指南,查看 [深入理解自动补全](../customize/deep-dives/autocomplete.md) 。