Vscode Deepseek
# VSCode Integration with DeepSeek
VSCode has a vast extension marketplace where users can install various extensions to enhance the editor's functionality, including language support, code formatting tools, version control integration, themes, and icons.
VS Code can integrate well with the large models we want through extensions. For commonly used extensions, you can refer to: (#).
Next, let's learn how to install the recently popular DeepSeek on VS Code through the Roo Code extension.
!(#)
This article uses Roo Code as an example to demonstrate how to integrate DeepSeek.
> In addition to official API interfaces, we can also directly integrate mainstream large models like DeepSeek, Kimi, GLM, Doubao, MiniMax, etc., through [Coding Plan/Token Plan](#) packages without having to purchase APIs from each provider separately.
### Installing the Roo Code Extension
Roo Code (formerly known as Roo Cline) is an AI programming assistant plugin for VS Code that provides an efficient and intelligent programming experience by integrating various AI models and powerful automation features.
Roo Code seamlessly integrates with mainstream APIs like OpenAI, DeepSeek, Anthropic, Google Gemini, and also supports using local models through Ollama, allowing developers to flexibly switch based on needs and budget.
Roo Code offers multiple preset modes, including Code (code mode), Architect (architecture mode), and Ask (Q&A mode), and supports user customization. For example, users can create a role focused on writing test cases for QA engineers.
Extension search keyword: Roo Code
!(#)
Plugin link address: [https://marketplace.visualstudio.com/items?itemName=RooVeterinaryInc.roo-cline](https://marketplace.visualstudio.com/items?itemName=RooGeekTimeVeterinaryInc.roo-cline)
Github address: [https://github.com/RooVetGit/Roo-Code](https://github.com/RooVetGit/Roo-Code)
### Setting Up the API Key
After installing the extension, there will be a small rocket icon in the left activity bar. Opening it will show the supported large models. We can choose DeepSeek:
!(#)
Fill in the API Key we applied for:
!(#)
We can apply for an API Key on the DeepSeek official API platform at [https://platform.deepseek.com/usage](https://platform.deepseek.com/usage):
!(#)
!(#)
After successful installation, we can click the plus sign + in the upper right corner of the extension to open a chat window:
!(#)
We can also select a small piece of code from a file and ask the large model to help us parse or correct it:
!(#)
Use the @ symbol to provide context for the AI. Typing @ will show a list of all files and code symbols in the folder.
!(#)
YouTip