Changesets · Branches · Tags · Compare
| Changeset | 6c4de4429aceac8fa82b52e4e8ae418ea253b90e78fa3351384f56f5ac568b3f |
|---|---|
| Author | NGC13009 <ngc1300@126.com> · 2025-07-13 01:02 +08:00 |
| Committer | NGC13009 <ngc1300@126.com> · 2025-07-13 01:02 +08:00 |
| Parents | 92186d63353b |
1 file changed
modified docs/customize/deep-dives/autocomplete.mdx +28 −4
| @@ -84,6 +84,30 @@ | ||
| 84 | 84 | |
| 85 | 85 | Once the model has been downloaded, you should begin to see completions in VS Code. |
| 86 | 86 | |
| 87 | +NOTE: Typically, thinking-type models are not recommended as they generate more slowly and are not suitable for scenarios that require speed. | |
| 88 | + | |
| 89 | +However, if you use any thinking-switchable models, you can configure these models for autocomplete functions by turning off the thinking mode. | |
| 90 | + | |
| 91 | +For example: | |
| 92 | + | |
| 93 | +<Tabs> | |
| 94 | + <Tab title="YAML"> | |
| 95 | + ```yaml title="config.yaml" | |
| 96 | + models: | |
| 97 | + - name: Qwen3 without Thinking for Autocomplete | |
| 98 | + provider: ollama | |
| 99 | + model: qwen3:4b # qwen3 is a thinking-switchable model | |
| 100 | + roles: | |
| 101 | + - autocomplete | |
| 102 | + requestOptions: | |
| 103 | + extraBodyProperties: | |
| 104 | + think: false # turning off the thinking | |
| 105 | + ``` | |
| 106 | + </Tab> | |
| 107 | +</Tabs> | |
| 108 | + | |
| 109 | +Then, in the continue panel, select this model as the default model for autocomplete. | |
| 110 | + | |
| 87 | 111 | ## Configuration Options |
| 88 | 112 | |
| 89 | 113 | ### Hub Autocomplete models |
| @@ -138,12 +162,12 @@ | ||
| 138 | 162 | |
| 139 | 163 | This is a built-in feature of VS Code, but it's just a bit hidden. Follow these settings to reassign the keyboard shortcuts in VS Code: |
| 140 | 164 | |
| 141 | -1. Press `Ctrl+Shift+P`, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page. | |
| 165 | +1. Press <kbd>Ctrl</kbd>+<kbd>Shift</kbd>+<kbd>P</kbd>, type the command: `Preferences: Open Keyboard Shortcuts`, and enter the keyboard shortcuts settings page. | |
| 142 | 166 | 2. Search for `editor.action.inlineSuggest.acceptNextLine`. |
| 143 | -3. Set the key binding to `Tab`. | |
| 167 | +3. Set the key binding to <kbd>Tab</kbd>. | |
| 144 | 168 | 4. Set the trigger condition (when) to `inlineSuggestionVisible && !editorReadonly`. |
| 145 | - This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with `Esc`. | |
| 146 | - If you need to apply all the code, just press `Tab` multiple times. | |
| 169 | + This will make multi-line completion (including continue and from VS Code built-in or other plugin snippets) still work, and you will see multi-line completion. However, Tab will only fill in one line at a time. Any unnecessary code can be canceled with <kbd>Esc</kbd>. | |
| 170 | + If you need to apply all the code, just press <kbd>Tab</kbd> multiple times. | |
| 147 | 171 | |
| 148 | 172 | ### How to turn off autocomplete |
| 149 | 173 |