cursor替换成vs code插件市场

背景

再使用cursor的时候,发现vscode能搜到的插件,cursor里面搜索不到。不如 格式化 protocol buffer的 Buf。所以 替换一下 cursor的插件市场地址

Cursor配置位置

/Applications/Cursor.app/Contents/Resources/app/product.json

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": "https://api2.cursor.sh/extensions-control",
	"recommendationsUrl": "",
	"nlsBaseUrl": "",
	"publisherUrl": ""
},

VS Code配置位置

/Applications/Visual Studio Code.app/Contents/Resources/app/product.json

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

更换配置

把cursor的 以下字段,替换成vs code对应的值

  • serviceUrl
  • itemUrl
  • resourceUrlTemplate
  • controlUrl
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": "https://main.vscode-cdn.net/extensions/marketplace.json",
		"recommendationsUrl": "",
		"nlsBaseUrl": "",
		"publisherUrl": ""
	},

最后

每次 更新cursor之后,配置文件 都会被还原回去。所以经常检查一下

相关推荐
程序视点2 小时前
如何高效率使用 Cursor ?
前端·后端·cursor
zifengb9 小时前
Cursor AI 模型选择不完全指南
ai编程·cursor
一只韩非子21 小时前
程序员太难了!Claude 用不了?两招解决!
前端·claude·cursor
萌萌哒草头将军1 天前
Cursor 发布 1.4 版本,更智能更全面 🚀🚀🚀
intellij idea·visual studio code·cursor
POLOAPI1 天前
亚马逊Kiro强势挑战Cursor霸主地位,AI IDE大战谁能笑到最后?
人工智能·cursor
csdn_aspnet2 天前
如何安装和使用 Cursor AI 编辑器
人工智能·cursor
bytebeats2 天前
Flutter开发: Cursor, Windsurf还是Trae?
cursor·windsurf·trae
哈哈哈哈哈哈哈哈8532 天前
怎么最大化利用cursor pro
cursor
csdn_aspnet3 天前
Cursor 与 VS Code 与 GitHub Copilot 的全面比较
vscode·copilot·cursor