diff --git a/docs/cli.mdx b/docs/cli.mdx index 8ed110eed..bd11d33f2 100644 --- a/docs/cli.mdx +++ b/docs/cli.mdx @@ -21,7 +21,6 @@ Configure and launch external applications to use Ollama models. This provides a - **OpenCode** - Open-source coding assistant - **Claude Code** - Anthropic's agentic coding tool - **Codex** - OpenAI's coding assistant -- **VS Code** - Microsoft's IDE with built-in AI chat - **Droid** - Factory's AI coding agent #### Examples diff --git a/docs/integrations/index.mdx b/docs/integrations/index.mdx index 8cc5499b7..1e835e542 100644 --- a/docs/integrations/index.mdx +++ b/docs/integrations/index.mdx @@ -39,6 +39,6 @@ Use Ollama models inside your editor. - Select Ollama models from the Copilot Chat model picker in VS Code. + Use Ollama models in VS Code Chat. diff --git a/docs/integrations/vscode.mdx b/docs/integrations/vscode.mdx index 63e58d749..44643fc65 100644 --- a/docs/integrations/vscode.mdx +++ b/docs/integrations/vscode.mdx @@ -2,84 +2,27 @@ title: VS Code --- -VS Code includes built-in AI chat through GitHub Copilot Chat. Ollama models can be used directly in the Copilot Chat model picker. +Use Ollama models in VS Code Chat with the [Ollama extension](https://marketplace.visualstudio.com/items?itemName=Ollama.ollama). +## Requirements -![VS Code with Ollama](/images/vscode.png) +- [Visual Studio Code 1.120 or newer](https://code.visualstudio.com/download) +- Ollama installed and running +## Get started -## Prerequisites +1. Install the [Ollama extension](https://marketplace.visualstudio.com/items?itemName=Ollama.ollama) from the VS Code Marketplace. +2. Open Chat in VS Code. +3. Open the model picker at the bottom of the chat input. +4. Choose a model from the **Ollama** section. -- Ollama v0.18.3+ -- [VS Code 1.113+](https://code.visualstudio.com/download) -- [GitHub Copilot Chat extension 0.41.0+](https://marketplace.visualstudio.com/items?itemName=GitHub.copilot-chat) +The extension discovers models from `http://127.0.0.1:11434` by default. - VS Code requires you to be logged in to use its model selector, even for custom models. This doesn't require a paid GitHub Copilot account; GitHub Copilot Free will enable model selection for custom models. +## Troubleshooting -## Quick setup +If Ollama models do not appear in the model picker: -```shell -ollama launch vscode -``` - -Recommended models will be shown after running the command. See the latest models at [ollama.com](https://ollama.com/search?c=tools). - -Make sure **Local** is selected at the bottom of the Copilot Chat panel to use your Ollama models. -
- Ollama Local Models -
- - -## Run directly with a model - -```shell -ollama launch vscode --model qwen3.5:cloud -``` -Cloud models are also available at [ollama.com](https://ollama.com/search?c=cloud). - -## Manual setup - -To configure Ollama manually without `ollama launch`: - -1. Open the **Copilot Chat** side bar from the top right corner -
- VS Code chat Sidebar -
-2. Click the **settings gear icon** () to bring up the Language Models window -
- VS Code model picker -
-3. Click **Add Models** and select **Ollama** to load all your Ollama models into VS Code -
- VS Code model options dropdown to add ollama models -
- -4. Click the **Unhide** button in the model picker to show your Ollama models -
- VS Code unhide models button -
+1. Make sure Ollama is running. +2. Run `ollama list` and confirm that models are available. +3. Run **Ollama: Refresh Models** from the Command Palette. +4. Run **Ollama: Diagnose Models** and check the **Ollama** output channel.