Visual Studio Code の拡張機能を移行する方法です。
同期用の拡張機能も存在しますが、GitHub へのアクセスが必要となるため、拡張機能なしで移行する方法をメモ。
- Windows 10
- VSCode 1.30.2
ターミナルから下記のコマンドを実行し、拡張機能のリストファイルを作成します。
ファイルは %USERPROFILE%
フォルダに作成されます。
code --list-extensions > vscode_extensions_list.txt
移行先端末の %USERPROFILE%
フォルダにリストファイルをコピーします。
ターミナルから下記のコマンドを実行し、拡張機能のリストファイルをもとにインストールします。
cat vscode_extensions_list.txt |% { code --install-extension $_}