本文翻译自:How can you export VS Code extension list
I need to send all my installed extensions to my colleagues, how can I export them? 我需要将所有已安装的扩展程序发送给同事,如何导出它们?
Extension manager seems to do nothing... It won't install any extension. 扩展程序管理器似乎什么也不做...它不会安装任何扩展程序。
#1楼
参考:https://stackoom.com/question/2q6gH/如何导出VS-Code扩展列表
#2楼
There is an Extension Manager extension, that may help. 有一个扩展管理器扩展,可能会有所帮助。 It seems to allow to install a set of extensions specified in the settings.json
. 似乎允许安装settings.json
指定的一组扩展。
#3楼
I've need to do this myself a few times - especially when installing on another machine. 我需要自己做几次-尤其是在另一台计算机上安装时。
https://code.visualstudio.com/docs/editor/extension-gallery#_common-questions will give you the location of your folder https://code.visualstudio.com/docs/editor/extension-gallery#_common-questions将为您提供文件夹的位置
VS Code looks for extensions under your extensions folder .vscode/extensions. VS Code在扩展文件夹.vscode / extensions下查找扩展。 Depending on your platform it is located: 根据您的平台,它位于:
Windows %USERPROFILE%\.vscode\extensions
Mac ~/.vscode/extensions
Linux ~/.vscode/extensions
That should show you a list of the extensions 那应该给你看扩展列表
I've also had success using Visual Studio Code Settings Sync Extension to sync settings to GitHub gist 我还成功使用Visual Studio Code Settings Sync Extension将设置同步到GitHub gist
EDIT: In the lastest release of VSCode (May 2016) it is now possible to list the installed extension in the command line 编辑:在最新版本的VSCode(2016年5月)中,现在可以在命令行中列出已安装的扩展名
code --list-extensions
#4楼
I opened the VSCode extensions folder and executed 我打开VSCode扩展文件夹并执行
find * -maxdepth 2 -name "package.json" | xargs grep "name"
That gives you a list from which you can extract the extension names. 这为您提供了一个列表,您可以从中提取扩展名。
#5楼
I have developed an extension which will sync your all Visual Studio Code Settings Across multiple instances. 我开发了一个扩展程序,它将跨多个实例同步所有Visual Studio Code设置。
Key Features 主要特征
- Use your github account token. 使用您的github帐户令牌。
- Easy to Upload and Download on one click. 一键轻松上传和下载。
- Saves all settings and snippets files. 保存所有设置和摘要文件。
- Upload Key : Shift + Alt + u 上传键:Shift + Alt + u
- Download Key : Shift + Alt + d 下载键:Shift + Alt + d
- Type Sync In Order to View all sync options 键入同步以查看所有同步选项
It Sync 它同步
- Settings File 设定文件
- Keybinding File 绑定文件
- Launch File 启动文件
- Snippets Folder 片段文件夹
- VSCode Extensions VSCode 扩展
Detail Documentation Source 详细文档来源
VSCode Sync ReadMe VSCode同步自述文件
Download here : VS Code Settings Sync 在此处下载: VS代码设置同步
#6楼
Generate windows command for install extensions. 生成用于安装扩展名的Windows命令。
for /F "tokens=*" %i in ('code --list-extensions')
do @echo call code --install-extension %i >> install.cmd