新人程序员入坑必备!windows-vscode集成ollama-deepseek-coder等于免费cursor
接上文,咱们继续探索deepseek-coder:
小白直接上手,3步即可!windows系统本地部署DeepSeek—Chat
背景
Cursor-AI Code Editor
Cursor官网
官网介绍就不赘述了,主要看价格太离谱了
以上,开始找cursor的平替
免费平替->DeepSeek-Coder(还有V2…)
准备软件:Ollama、CodeGPT: Chat & AI Agents(VSCODE插件)
安装试用
1.1下载和安装ollama
下载ollama
安装ollama
这里无脑下一步就行(默认安装在c盘)
1.2 安装ollama-deepseek-coder模型
ollama-deepseek-coder模型
ollama-deepseek-coder-v2模型
以下,我就用deepseek-coder-1.3b示例。
记住代码:ollama run deepseek-coder:1.3b
打开powershell,windows—>Windows PowerShell(右键以管理员身份运行)
输入:ollama run deepseek-coder:1.3b
完成后可以输入:help me to write a bubble sort by golang script
1.3 vscode安装CodeGPT
配置vscode自动补全+本地库
点击这里打开配置
Connect to Ollama:
http://localhost:11434
先连接本地的deepseek库,点击connect会有反馈
问题:有遇到一个问题?54112端口被占用
VSCODE CodeGPT Unable to connect to the extension services
官网处理方案
For Windows:
netstat -aon | findstr :54112
taskkill /F /PID <PID>
1.4试用免费版(更多功能等待探索)
在输入框输入:
help me to write a bubble sort by golang code
其他就是代码扩展:
到此,平替成功!!!