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之后,配置文件 都会被还原回去。所以经常检查一下

相关推荐
啊湘21 小时前
VSCODE英文界面切换为中文(适用CURSOR等使用)
ide·vscode·编辑器·bug·cursor
roamingcode1 天前
超越 Context Window:为何文件系统是 AI Agent 的终极记忆体
人工智能·agent·cursor·claude code·上下文工程·skill 技能
袋鱼不重3 天前
保姆级教程:让 Cursor 编辑器突破地区限制,正常调用大模型(附配置 + 截图)
前端·后端·cursor
彭涛3613 天前
断点调试: 使用 VS Code / Cursor 调试器
cursor
longze_73 天前
生成式UI与未来AI交互变革
人工智能·python·ai·ai编程·cursor·蓝湖
带娃的IT创业者4 天前
Cursor 新增的 Plan 和 Debug 模式介绍
人工智能·python·cursor·ai辅助开发·ai开发工具·ai开发技巧
薛定谔的猫25 天前
Cursor 系列(2):使用心得
前端·ai编程·cursor
peterfei5 天前
当AI编辑器学会了Shell命令:IfAI v0.2.6深度测评与实战指南
ai编程·cursor
QING6185 天前
移动端攻城狮 —— 浅谈 AI 编程对我的影响?
openai·ai编程·cursor
2501_941871456 天前
面向分布式事务与最终一致性设计的互联网系统高可靠架构与多语言工程实践分享
intellij-idea·visual studio code