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