LoginSignup
12
14

More than 3 years have passed since last update.

VSCode コマンドラインでextensionのインポート/エクスポート

Last updated at Posted at 2018-11-22

エクスポート

code --list-extensions > ext.txt

インポート

  • 以下のシェルスクリプトを作成して実行
import.sh
#!/bin/bash

while read line
do
  # echo `code --uninstall-extension $line`
  echo `code --install-extension $line`
done < ext.txt

追記(2020/12/27)

--install-extensionに対して--forceオプションを追加できるようです。

Use '--force' option to update to latest version or provide '@<version>' to install a specific version

参考

12
14
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
12
14