@echo off
for /F %%i in ('code --list-extensions') do @echo code --install-extension %%i >> install.bat
echo succeed
pause
result:
code --install-extension austin.code-gnu-global
code --install-extension bmewburn.vscode-intelephense-client
code --install-extension felixfbecker.php-intellisense
code --install-extension MS-CEINTL.vscode-language-pack-zh-hans
code --install-extension ms-python.python
code --install-extension ms-python.vscode-pylance
code --install-extension ms-toolsai.jupyter
code --install-extension ms-vscode-remote.remote-containers
code --install-extension ms-vscode-remote.remote-ssh
code --install-extension ms-vscode-remote.remote-ssh-edit
code --install-extension ms-vscode-remote.remote-wsl
code --install-extension ms-vscode-remote.vscode-remote-extensionpack
code --install-extension ms-vscode.cpptools
code --install-extension PKief.material-icon-theme
code --install-extension sandcastle.vscode-open
code --install-extension yzhang.markdown-all-in-one