How can I install Visual Studio Code extensions offline?

后端 未结 12 1191
终归单人心
终归单人心 2020-11-27 09:12

I have installed Visual Studio Code on a machine that is not, and cannot be, connected to the Internet. According to the documentation, I can install an extension from the c

12条回答
  •  隐瞒了意图╮
    2020-11-27 10:01

    Adding to t3chb0t's excellent answer - Use these PowerShell commands to install all VSCode extensions in a folder:

    cd C:\PathToFolderWithManyDownloadedExtensionFiles
    Get-ChildItem . -Filter *.vsix | ForEach-Object { code --install-extension $_.FullName }
    

    Then, reload VSCode to complete the installation.

提交回复
热议问题