Skip to content

Instantly share code, notes, and snippets.

@minazou67
Created February 6, 2019 04:02
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save minazou67/09906411706a814f4bd8323b5051d9d4 to your computer and use it in GitHub Desktop.
Save minazou67/09906411706a814f4bd8323b5051d9d4 to your computer and use it in GitHub Desktop.
How to migrate VSCode extension

How to migrate VSCode extension

Visual Studio Code の拡張機能を移行する方法です。
同期用の拡張機能も存在しますが、GitHub へのアクセスが必要となるため、拡張機能なしで移行する方法をメモ。

Environment

  • Windows 10
  • VSCode 1.30.2

Export

ターミナルから下記のコマンドを実行し、拡張機能のリストファイルを作成します。
ファイルは %USERPROFILE% フォルダに作成されます。

code --list-extensions > vscode_extensions_list.txt

Copy files

移行先端末の %USERPROFILE% フォルダにリストファイルをコピーします。

Import

ターミナルから下記のコマンドを実行し、拡張機能のリストファイルをもとにインストールします。

cat vscode_extensions_list.txt |% { code --install-extension $_}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment