如何导出VS Code扩展列表

本文介绍了如何导出Visual Studio Code的已安装扩展,包括查看扩展文件夹、使用命令行工具以及借助扩展管理器和VS Code Settings Sync Extension进行同步。用户可以通过检查.vscode/extensions文件夹、执行特定命令或者使用第三方扩展来实现扩展列表的导出和分享。
摘要由CSDN通过智能技术生成

本文翻译自: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 主要特征

  1. Use your github account token. 使用您的github帐户令牌。
  2. Easy to Upload and Download on one click. 一键轻松上传和下载。
  3. Saves all settings and snippets files. 保存所有设置和摘要文件。
  4. Upload Key : Shift + Alt + u 上传键:Shift + Alt + u
  5. Download Key : Shift + Alt + d 下载键:Shift + Alt + d
  6. Type Sync In Order to View all sync options 键入同步以查看所有同步选项

It Sync 它同步

  1. Settings File 设定文件
  2. Keybinding File 绑定文件
  3. Launch File 启动文件
  4. Snippets Folder 片段文件夹
  5. 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
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值