解决Cursor插件市场无法打开或加载缓慢问题

问题

在Cursor商店中,无法下载所需的插件,或者搜索插件时需要等待很长时间。

问题原因

Cursor默认使用的插件市场并非VS Code的插件市场,且由于国内网络环境的限制,可能无法正常访问。

解决方案

打开Cursor安装目录下的 resources\app\product.json 文件。

修改文件中 extensionsGallery 的配置(将下文的内容复制并覆盖原本内容)。

修改插件市场的地址后,重启Cursor。

原始配置:

json 复制代码
"extensionsGallery": {
  "galleryId": "cursor",
  "serviceUrl": "https://marketplace.cursorapi.com/_apis/public/gallery",
  "itemUrl": "https://marketplace.cursorapi.com/items",
  "resourceUrlTemplate": "https://marketplace.cursorapi.com/{publisher}/{name}/{version}/{path}",
  "controlUrl": "",
  "extensionUrlTemplate": "https://www.vscode-unpkg.net/_gallery/{publisher}/{name}/latest",
  "recommendationsUrl": "",
  "nlsBaseUrl": "",
  "publisherUrl": ""
},

修改后的配置:

json 复制代码
"extensionsGallery": {
  "galleryId": "cursor",
  "serviceUrl": "https://marketplace.visualstudio.com/_apis/public/gallery",
  "itemUrl": "https://marketplace.visualstudio.com/items",
  "resourceUrlTemplate": "https://{publisher}.vscode-unpkg.net/{publisher}/{name}/{version}/{path}",
  "controlUrl": "",
  "extensionUrlTemplate": "https://www.vscode-unpkg.net/_gallery/{publisher}/{name}/latest",
  "recommendationsUrl": "",
  "nlsBaseUrl": "https://www.vscode-unpkg.net/_lp/",
  "publisherUrl": "https://marketplace.visualstudio.com/publishers"
},

done

相关推荐
code_Bo5 小时前
多 Agent 协作最大的坑不是模型,是失忆
ai编程·cursor·mcp
free-elcmacom7 天前
发际线警告!手撕《C陷阱与缺陷》终极 BOSS:signal 函数与 typedef 魔法
c语言·开发语言·visual studio code·visual studio
前端小白乘风7 天前
VS Code 终于能连微信了!发现一个硬核开源神仙插件:WeChat AHP
微信·visual studio code·deepseek
weixin_6687 天前
Cursor 插件使用说明:Linear 与 Figma
人工智能·cursor
free-elcmacom9 天前
C语言指针进阶——指针数组模拟二维数组,以及二级指针到底怎么理解
c语言·visual studio code
formulahendry9 天前
微信和 VS Code 强强联合!WeChat AHP 来了
visual studio code·vs code
一个金牛座的前端9 天前
AI 写前端,优化的是演示,不是交付
前端·ai·cursor
向北丶11 天前
vscode 导入语句排序和删除未使用的导入
前端·visual studio code
破土士V11 天前
AI生成测试用例+agent browser实现Web测试用例执行
ai·自动化·cursor·ai生成测试用例·agent browser·ai自动执行测试用例
FEF前端团队11 天前
02# Cursor实战:从安装到Agent模式
ai编程·cursor·vibecoding