问题
在Cursor商店中,无法下载所需的插件,或者搜索插件时需要等待很长时间。
问题原因
Cursor默认使用的插件市场并非VS Code的插件市场,且由于国内网络环境的限制,可能无法正常访问。
解决方案
(笔者: cursor版本0.50.5实测有效)
打开Cursor安装目录下的 resources\app\product.json 文件。
修改文件中 extensionsGallery 的配置(将下文的内容复制并覆盖原本内容)。
修改插件市场的地址后,重启Cursor。原始配置:
"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": "https://api2.cursor.sh/extensions-control",
"extensionUrlTemplate": "https://www.vscode-unpkg.net/_gallery/{publisher}/{name}/latest",
"recommendationsUrl": "",
"nlsBaseUrl": "",
"publisherUrl": ""
},
修改后的配置:
"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": "https://api2.cursor.sh/extensions-control",
"extensionUrlTemplate": "https://www.vscode-unpkg.net/_gallery/{publisher}/{name}/latest",
"recommendationsUrl": "",
"nlsBaseUrl": "https://www.vscode-unpkg.net/_lp/",
"publisherUrl": "https://marketplace.visualstudio.com/publishers"
},
参考
解决Cursor插件市场无法打开或加载缓慢问题_cursor market-CSDN博客
https://blog.csdn.net/qq_64107840/article/details/147421815