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

相关推荐
bryceZh10 小时前
Agent-Skills使用指南
agent·cursor
ghostwritten17 小时前
Cursor 代码库索引三剑客:Local、Worktree、Cloud 指南
ai·cursor
AskHarries18 小时前
Skills Desktop:一个用来管理 Skill 的桌面工具
ai编程·cursor
prog_61031 天前
【笔记】思路分享:各种大模型免费当agent后台
笔记·大语言模型·agent·cursor
code bean2 天前
【AI 】OpenSpec 实战指南:在 Cursor 中落地 AI 原生开发工作流
人工智能·cursor·ai工作流·openspec
执风挽^2 天前
Python基础编程题2
开发语言·python·算法·visual studio code
Wei&Yan3 天前
数据结构——顺序表(静/动态代码实现)
数据结构·c++·算法·visual studio code
执风挽^4 天前
Python_func_basic
开发语言·python·算法·visual studio code
玄同7658 天前
Trae国际版与国内版深度测评:AI原生IDE的双生花
ide·人工智能·ai编程·cursor·ai-native·trae
棒子陈9 天前
使用cursor移植单片机的串口驱动(DMA+队列式串口驱动,APM32F103移植到PY32F071)
单片机·嵌入式硬件·cursor·py32f071