Install-VSCode

1.4.2

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/master/scripts/Install-VSCode.ps1

Show more

Installation Options

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

Install-Script -Name Install-VSCode -RequiredVersion 1.4.2

Copy and Paste the following command to install this package using Microsoft.PowerShell.PSResourceGet More Info

You can deploy this package directly to Azure Automation. Note that deploying packages with dependencies will deploy 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

Owners

Copyright

(c) Microsoft Corporation

Package Details

Author(s)

  • Microsoft

Tags

install vscode installer

Functions

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

Dependencies

This script has no dependencies.

Release Notes

02/06/2021 - Fix an architecture check issue with non-English localizations.
--
01/04/2021 - Fix host for downloading VSCode.
--
07/10/2019 - Fix a version check when installing user-builds with Windows Powershell greater than 5.
--
30/08/2019 - Added functionality to install the "User Install" variant of Stable Edition.
--
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
and support for installation of VSCode Insiders Edition.
--
Initial release.

FileList

Version History

Version Downloads Last updated
1.4.3 6,707 6/29/2022
1.4.2 (current version) 14,980 6/17/2021
1.4.1 1,797 4/27/2021
1.4 7,448 9/24/2019
1.3 1,353 3/29/2019
1.2 3,948 3/26/2018
1.0 3,167 5/7/2017
Show more