Install-VSCode

1.3

This script can be used to easily install Visual Studio Code and the
PowerShell extension on your machine.  You may also specify additional
extensions to be installed using the -AdditionalExtensions parameter.
The -LaunchWhenDone parameter will cause VS Code to be launched as
soon as installation has completed.

Please contribute improvements to this script on GitHub!
This script can be used to easily install Visual Studio Code and the
PowerShell extension on your machine.  You may also specify additional
extensions to be installed using the -AdditionalExtensions parameter.
The -LaunchWhenDone parameter will cause VS Code to be launched as
soon as installation has completed.

Please contribute improvements to this script on GitHub!

https://github.com/PowerShell/vscode-powershell/blob/develop/scripts/Install-VSCode.ps1

Installation Options

Copy and Paste the following command to install this package using PowerShellGet More Info

Install-Script -Name Install-VSCode

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deloy all the dependencies to Azure Automation. Learn More

Manually download the .nupkg file to your system's default download location. Note that the file won't be unpacked, and won't include any dependencies. Learn More

Author(s)

Microsoft

Copyright

(c) Microsoft Corporation

Owners

Tags

install vscode installer

Functions

Test-IsOsArchX64 Get-AvailablePackageManager Get-CodePlatformInformation Save-WithBitsTransfer Install-VSCodeFromTar

Dependencies

This script has no dependencies.

Release Notes

07/11/2018 - added support for PowerShell Core and macOS/Linux platforms.
--
15/08/2018 - added functionality to install the new "User Install" variant of Insiders Edition.
--
21/03/2018 - added functionality to install the VSCode context menus. Also, VSCode is now always added to the search path
--
20/03/2018 - fix OS detection to prevent error
--
28/12/2017 - added functionality to support 64-bit versions of VSCode
& support for installation of VSCode Insiders Edition.
--
Initial release.

Version History

Version Downloads Last updated
1.3 (current version) 181 3/29/2019
1.2 3,605 3/26/2018
1.0 3,119 5/7/2017
.