Visual Studio Code

This is not the latest version of Visual Studio Code available.

1.37.1 | Updated: 15 Aug 2019



Downloads of v 1.37.1:


Software Author(s):

  • Microsoft

Visual Studio Code 1.37.1

This is not the latest version of Visual Studio Code available.

All Checks are Passing

2 Passing Test

Validation Testing Passed

Verification Testing Passed


To install Visual Studio Code, run the following command from the command line or from PowerShell:


To upgrade Visual Studio Code, run the following command from the command line or from PowerShell:


To uninstall Visual Studio Code, run the following command from the command line or from PowerShell:


NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to

4. Choose your deployment method:

choco upgrade vscode -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:

choco upgrade vscode -y --source="'STEP 3 URL'"

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0

Exit $exitCode

- name: Ensure vscode installed
    name: vscode
    state: present
    version: 1.37.1
    source: STEP 3 URL

See docs at

Coming early 2020! Central Managment Reporting available now! More information...

chocolatey_package 'vscode' do
  action    :install
  version  '1.37.1'
  source   'STEP 3 URL'

See docs at

    Name: vscode,
    Version: 1.37.1,
    Source: STEP 3 URL

Requires Otter Chocolatey Extension. See docs at

cChocoPackageInstaller vscode
   Name     = 'vscode'
   Ensure   = 'Present'
   Version  = '1.37.1'
   Source   = 'STEP 3 URL'

Requires cChoco DSC Resource. See docs at

package { 'vscode':
  provider => 'chocolatey',
  ensure   => '1.37.1',
  source   => 'STEP 3 URL',

Requires Puppet Chocolatey Provider module. See docs at

salt '*' chocolatey.install vscode version="1.37.1" source="STEP 3 URL"

See docs at

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

Private CDN cached downloads available for licensed customers. Never experience 404 breakages again! Learn more...

This package was approved as a trusted package on 15 Aug 2019.


Build and debug modern web and cloud applications. Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.


  • Meet IntelliSense: Go beyond syntax highlighting and autocomplete with IntelliSense, which provides smart completions based on variable types, function definitions, and imported modules.
  • Print statement debugging is a thing of the past: Debug code right from the editor. Launch or attach to your running apps and debug with break points, call stacks, and an interactive console.
  • Git commands built-in: Working with Git has never been easier. Review diffs, stage files, and make commits right from the editor. Push and pull from any hosted Git service.
  • Extensible and customizable: Want even more features? Install extensions to add new languages, themes, debuggers, and to connect to additional services. Extensions run in separate processes, ensuring they won't slow down your editor.

Package parameters

  • /NoDesktopIcon - Don't add a desktop icon.
  • /NoQuicklaunchIcon - Don't add an icon to the QuickLaunch area.
  • /NoContextMenuFiles - Don't add an Open with Code entry to the context menu for files.
  • /NoContextMenuFolders - Dont't add an Open with Code entry to the context menu for folders.
  • /DontAddToPath - Don't add Visual Studio Code to the system PATH.

Example: choco install vscode --params "/NoDesktopIcon /DontAddToPath"



$ErrorActionPreference = 'Stop'

$toolsPath = Split-Path $MyInvocation.MyCommand.Definition
. $toolsPath\helpers.ps1

$softwareName = 'Microsoft Visual Studio Code'
$version = '1.37.1'
if ($version -eq (Get-UninstallRegistryKey "$softwareName").DisplayVersion) {
  Write-Host "VS Code $version is already installed."

$pp = Get-PackageParameters

$packageArgs = @{
  packageName    = 'vscode'
  fileType       = 'exe'
  url            = ''
  url64bit       = ''

  softwareName   = "$softwareName"

  checksum       = 'ee86693f9ed247bb17d383981e3bcd062190c07288812fede80ce2524937b9cd'
  checksumType   = 'sha256'
  checksum64     = '2d9cca1da13705e79c257f77cdba508763addd3a42f5424df350ffb965c315f0'
  checksumType64 = 'sha256'

  silentArgs     = '/verysilent /suppressmsgboxes /mergetasks="{0}" /log="{1}\install.log"' -f (Get-MergeTasks), (Get-PackageCacheLocation)
  validExitCodes = @(0, 3010, 1641)

Install-ChocolateyPackage @packageArgs
function Get-MergeTasks {
    $t  = "!runCode"
    $t += ', ' + '!'*$pp.NoDesktopIcon        + 'desktopicon'
    $t += ', ' + '!'*$pp.NoQuicklaunchIcon    + 'quicklaunchicon'
    $t += ', ' + '!'*$pp.NoContextMenuFiles   + 'addcontextmenufiles'
    $t += ', ' + '!'*$pp.NoContextMenuFolders + 'addcontextmenufolders'
    $t += ', ' + '!'*$pp.DontAddToPath        + 'addtopath'

    Write-Host "Merge Tasks: $t"

function Close-VSCode {
    Get-Process code -ea 0 | ForEach-Object { $_.CloseMainWindow() | Out-Null }
    Start-Sleep 1
    Get-Process code -ea 0 | Stop-Process  #in case gracefull shutdown did not succeed, try hard kill

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
Visual Studio Code 1.50.0 25819 Thursday, October 8, 2020 Approved
Visual Studio Code 1.49.3 21212 Saturday, October 3, 2020 Approved
Visual Studio Code 1.49.2 25282 Friday, September 25, 2020 Approved
Visual Studio Code 1.49.1 25187 Friday, September 18, 2020 Approved
Visual Studio Code 1.49.0 24308 Friday, September 11, 2020 Approved
Visual Studio Code 1.48.2 41176 Tuesday, August 25, 2020 Approved
Visual Studio Code 1.48.1 19566 Thursday, August 20, 2020 Approved
Visual Studio Code 1.48.0 21213 Thursday, August 13, 2020 Approved
Visual Studio Code 1.47.3 37962 Tuesday, July 28, 2020 Approved

Discussion for the Visual Studio Code Package

Ground Rules:

  • This discussion is only about Visual Studio Code and the Visual Studio Code package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Visual Studio Code, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus