Unpacking Software Livestream

Join our monthly Unpacking Software livestream to hear about the latest news, chat and opinion on packaging, software deployment and lifecycle management!

Learn More

Chocolatey Product Spotlight

Join the Chocolatey Team on our regular monthly stream where we put a spotlight on the most recent Chocolatey product releases. You'll have a chance to have your questions answered in a live Ask Me Anything format.

Learn More

Chocolatey Coding Livestream

Join us for the Chocolatey Coding Livestream, where members of our team dive into the heart of open source development by coding live on various Chocolatey projects. Tune in to witness real-time coding, ask questions, and gain insights into the world of package management. Don't miss this opportunity to engage with our team and contribute to the future of Chocolatey!

Learn More

Calling All Chocolatiers! Whipping Up Windows Automation with Chocolatey Central Management

Webinar from
Wednesday, 17 January 2024

We are delighted to announce the release of Chocolatey Central Management v0.12.0, featuring seamless Deployment Plan creation, time-saving duplications, insightful Group Details, an upgraded Dashboard, bug fixes, user interface polishing, and refined documentation. As an added bonus we'll have members of our Solutions Engineering team on-hand to dive into some interesting ways you can leverage the new features available!

Watch On-Demand
Chocolatey Community Coffee Break

Join the Chocolatey Team as we discuss all things Community, what we do, how you can get involved and answer your Chocolatey questions.

Watch The Replays
Chocolatey and Intune Overview

Webinar Replay from
Wednesday, 30 March 2022

At Chocolatey Software we strive for simple, and teaching others. Let us teach you just how simple it could be to keep your 3rd party applications updated across your devices, all with Intune!

Watch On-Demand
Chocolatey For Business. In Azure. In One Click.

Livestream from
Thursday, 9 June 2022

Join James and Josh to show you how you can get the Chocolatey For Business recommended infrastructure and workflow, created, in Azure, in around 20 minutes.

Watch On-Demand
The Future of Chocolatey CLI

Livestream from
Thursday, 04 August 2022

Join Paul and Gary to hear more about the plans for the Chocolatey CLI in the not so distant future. We'll talk about some cool new features, long term asks from Customers and Community and how you can get involved!

Watch On-Demand
Hacktoberfest Tuesdays 2022

Livestreams from
October 2022

For Hacktoberfest, Chocolatey ran a livestream every Tuesday! Re-watch Cory, James, Gary, and Rain as they share knowledge on how to contribute to open-source projects such as Chocolatey CLI.

Watch On-Demand

Visual Studio Code (Install)

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

  • 1
  • 2
  • 3

1.49.2 | Updated: 25 Sep 2020

Downloads:

5,787,718

Downloads of v 1.49.2:

23,460

Maintainer(s):

Software Author(s):

  • Microsoft

Visual Studio Code (Install) 1.49.2

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

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details
Learn More

Deployment Method: Individual Install, Upgrade, & Uninstall

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

>

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

>

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

>

Deployment Method:

NOTE

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

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • 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 https://community.chocolatey.org/api/v2/. 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. Copy Your Script

choco upgrade vscode.install -y --source="'INTERNAL REPO URL'" --version="'1.49.2'" [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.install -y --source="'INTERNAL REPO URL'" --version="'1.49.2'" 
$exitCode = $LASTEXITCODE

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

Exit $exitCode

- name: Install vscode.install
  win_chocolatey:
    name: vscode.install
    version: '1.49.2'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'vscode.install' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '1.49.2'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller vscode.install
{
    Name     = "vscode.install"
    Version  = "1.49.2"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'vscode.install':
  ensure   => '1.49.2',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

NOTE

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

NOTE

This package is likely a meta/virtual (*) or an installer (*.install) or portable (*.portable) application package.

  • Meta/virtual (*) - has a dependency on the *.install or the *.portable package - it is provided for discoverability and for other packages to take a dependency on.
  • Portable (*.portable/*.commandline (deprecated naming convention)/*.tool (deprecated naming convention)) - usually zips or archives that require no administrative access to install.
  • Install (*.install/*.app (deprecated naming convention)) - uses native installers, usually requires administrative access to install.

Learn more about chocolatey's distinction of installed versus portable apps and/or learn about this kind of package.

Package Approved

This package was approved as a trusted package on 25 Sep 2020.

Description

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

Features

  • 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.
  • /DontAssociateWithFiles - Dont't associate Visual Studio Code with supported files.
  • /DontAddToPath - Don't add Visual Studio Code to the system PATH.

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

Notes

screenshot


tools\ChocolateyInstall.ps1
$ErrorActionPreference = 'Stop'

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

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

$pp = Get-PackageParameters
Close-VSCode

$packageArgs = @{
  packageName    = 'vscode.install'
  fileType       = 'exe'
  url            = 'https://az764295.vo.msecnd.net/stable/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a/VSCodeSetup-ia32-1.49.2.exe'
  url64bit       = 'https://az764295.vo.msecnd.net/stable/e5e9e69aed6e1984f7499b7af85b3d05f9a6883a/VSCodeSetup-x64-1.49.2.exe'

  softwareName   = "$softwareName"

  checksum       = '11e9194b59ef4bb1edd964acabba12b67e7f2114c2652949a6ed2062236f70c7'
  checksumType   = 'sha256'
  checksum64     = '0d49771b69477caa989ed4644d20ba26d8bc55c4cee12d0a694268eb0742dea8'
  checksumType64 = 'sha256'

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

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

    Write-Host "Merge Tasks: $t"
    $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.

Add to Builder Version Downloads Last Updated Status
Visual Studio Code (Install) 1.88.0 38347 Thursday, April 4, 2024 Approved
Visual Studio Code (Install) 1.87.2 87620 Tuesday, March 12, 2024 Approved
Visual Studio Code (Install) 1.87.1 36580 Friday, March 8, 2024 Approved
Visual Studio Code (Install) 1.87.0 46195 Thursday, February 29, 2024 Approved
Visual Studio Code (Install) 1.86.2 57118 Thursday, February 15, 2024 Approved
Visual Studio Code (Install) 1.86.1 42863 Thursday, February 8, 2024 Approved
Visual Studio Code (Install) 1.86.0 41827 Thursday, February 1, 2024 Approved
Visual Studio Code (Install) 1.85.2 60787 Thursday, January 18, 2024 Approved
Visual Studio Code (Install) 1.85.1 99589 Wednesday, December 13, 2023 Approved
Visual Studio Code (Install) 1.85.0 46678 Friday, December 8, 2023 Approved
Visual Studio Code (Install) 1.84.2 92411 Friday, November 10, 2023 Approved
Visual Studio Code (Install) 1.84.1 2097 Thursday, November 9, 2023 Approved
Visual Studio Code (Install) 1.83.1 103493 Thursday, October 12, 2023 Approved
Visual Studio Code (Install) 1.83.0 58527 Thursday, October 5, 2023 Approved
Visual Studio Code (Install) 1.82.3 30610 Monday, October 2, 2023 Approved
Visual Studio Code (Install) 1.82.2 72359 Monday, September 18, 2023 Approved
Visual Studio Code (Install) 1.82.1 40738 Tuesday, September 12, 2023 Approved
Visual Studio Code (Install) 1.82.0 38655 Friday, September 8, 2023 Approved
Visual Studio Code (Install) 1.81.1 68319 Thursday, August 24, 2023 Approved
Visual Studio Code (Install) 1.80.1 147803 Friday, July 14, 2023 Approved
Visual Studio Code (Install) 1.80.0 71387 Thursday, July 6, 2023 Approved
Visual Studio Code (Install) 1.79.2 126940 Thursday, June 15, 2023 Approved
Visual Studio Code (Install) 1.79.1 24965 Tuesday, June 13, 2023 Approved
Visual Studio Code (Install) 1.79.0 33614 Thursday, June 8, 2023 Approved
Visual Studio Code (Install) 1.78.2 98574 Friday, May 12, 2023 Approved
Visual Studio Code (Install) 1.78.1 25301 Tuesday, May 9, 2023 Approved
Visual Studio Code (Install) 1.78.0 67566 Thursday, May 4, 2023 Approved
Visual Studio Code (Install) 1.77.3 110451 Wednesday, April 12, 2023 Approved
Visual Studio Code (Install) 1.77.2 18250 Tuesday, April 11, 2023 Approved
Visual Studio Code (Install) 1.77.1 34397 Thursday, April 6, 2023 Approved
Visual Studio Code (Install) 1.77.0 40025 Friday, March 31, 2023 Approved
Visual Studio Code (Install) 1.76.2 62859 Wednesday, March 15, 2023 Approved
Visual Studio Code (Install) 1.76.1 38412 Friday, March 10, 2023 Approved
Visual Studio Code (Install) 1.76.0 48342 Thursday, March 2, 2023 Approved
Visual Studio Code (Install) 1.75.1 69059 Friday, February 10, 2023 Approved
Visual Studio Code (Install) 1.75.0 42403 Friday, February 3, 2023 Approved
Visual Studio Code (Install) 1.74.3 76448 Tuesday, January 10, 2023 Approved
Visual Studio Code (Install) 1.74.2 61574 Wednesday, December 21, 2022 Approved
Visual Studio Code (Install) 1.74.1 35577 Thursday, December 15, 2022 Approved
Visual Studio Code (Install) 1.74.0 38657 Thursday, December 8, 2022 Approved
Visual Studio Code (Install) 1.73.1 82728 Thursday, November 10, 2022 Approved
Visual Studio Code (Install) 1.73.0 41953 Wednesday, November 2, 2022 Approved
Visual Studio Code (Install) 1.72.2 65563 Thursday, October 13, 2022 Approved
Visual Studio Code (Install) 1.72.1 22206 Tuesday, October 11, 2022 Approved
Visual Studio Code (Install) 1.72.0 36206 Thursday, October 6, 2022 Approved
Visual Studio Code (Install) 1.71.2 70240 Thursday, September 15, 2022 Approved
Visual Studio Code (Install) 1.71.1 22250 Tuesday, September 13, 2022 Approved
Visual Studio Code (Install) 1.71.0 46579 Friday, September 2, 2022 Approved
Visual Studio Code (Install) 1.70.2 61145 Wednesday, August 17, 2022 Approved
Visual Studio Code (Install) 1.70.1 37377 Wednesday, August 10, 2022 Approved
Visual Studio Code (Install) 1.70.0 32421 Thursday, August 4, 2022 Approved
Visual Studio Code (Install) 1.69.2 51780 Tuesday, July 19, 2022 Approved
Visual Studio Code (Install) 1.69.1 41828 Tuesday, July 12, 2022 Approved
Visual Studio Code (Install) 1.69.0 29604 Thursday, July 7, 2022 Approved
Visual Studio Code (Install) 1.68.1 64993 Wednesday, June 15, 2022 Approved
Visual Studio Code (Install) 1.68.0 34502 Thursday, June 9, 2022 Approved
Visual Studio Code (Install) 1.67.2 58398 Wednesday, May 18, 2022 Approved
Visual Studio Code (Install) 1.67.1 54963 Tuesday, May 10, 2022 Approved
Visual Studio Code (Install) 1.67.0 29372 Thursday, May 5, 2022 Approved
Visual Studio Code (Install) 1.66.2 69508 Tuesday, April 12, 2022 Approved
Visual Studio Code (Install) 1.66.1 30133 Thursday, April 7, 2022 Approved
Visual Studio Code (Install) 1.66.0 40813 Wednesday, March 30, 2022 Approved
Visual Studio Code (Install) 1.65.2 63884 Friday, March 11, 2022 Approved
Visual Studio Code (Install) 1.65.1 22825 Tuesday, March 8, 2022 Approved
Visual Studio Code (Install) 1.65.0 30494 Friday, March 4, 2022 Approved
Visual Studio Code (Install) 1.64.2 63328 Thursday, February 10, 2022 Approved
Visual Studio Code (Install) 1.64.1 21948 Tuesday, February 8, 2022 Approved
Visual Studio Code (Install) 1.64.0 30048 Friday, February 4, 2022 Approved
Visual Studio Code (Install) 1.63.2 94525 Thursday, December 16, 2021 Approved
Visual Studio Code (Install) 1.63.1 22464 Tuesday, December 14, 2021 Approved
Visual Studio Code (Install) 1.63.0 34238 Thursday, December 9, 2021 Approved
Visual Studio Code (Install) 1.62.3 58172 Thursday, November 18, 2021 Approved
Visual Studio Code (Install) 1.62.2 32500 Friday, November 12, 2021 Approved
Visual Studio Code (Install) 1.62.1 27393 Tuesday, November 9, 2021 Approved
Visual Studio Code (Install) 1.62.0 27958 Thursday, November 4, 2021 Approved
Visual Studio Code (Install) 1.61.2 53428 Wednesday, October 20, 2021 Approved
Visual Studio Code (Install) 1.61.1 28396 Friday, October 15, 2021 Approved
Visual Studio Code (Install) 1.61.0 32692 Friday, October 8, 2021 Approved
Visual Studio Code (Install) 1.60.2 52761 Wednesday, September 22, 2021 Approved
Visual Studio Code (Install) 1.60.1 36383 Tuesday, September 14, 2021 Approved
Visual Studio Code (Install) 1.60.0 40404 Thursday, September 2, 2021 Approved
Visual Studio Code (Install) 1.59.1 43669 Friday, August 20, 2021 Approved
Visual Studio Code (Install) 1.59.0 43251 Thursday, August 5, 2021 Approved
Visual Studio Code (Install) 1.58.2 54809 Thursday, July 15, 2021 Approved
Visual Studio Code (Install) 1.58.1 16673 Tuesday, July 13, 2021 Approved
Visual Studio Code (Install) 1.58.0 24389 Thursday, July 8, 2021 Approved
Visual Studio Code (Install) 1.57.1 52283 Friday, June 18, 2021 Approved
Visual Studio Code (Install) 1.57.0 34452 Thursday, June 10, 2021 Approved
Visual Studio Code (Install) 1.56.2 67019 Thursday, May 13, 2021 Approved
Visual Studio Code (Install) 1.56.1 24472 Tuesday, May 11, 2021 Approved
Visual Studio Code (Install) 1.56.0 26612 Thursday, May 6, 2021 Approved
Visual Studio Code (Install) 1.55.2 55298 Tuesday, April 13, 2021 Approved
Visual Studio Code (Install) 1.55.1 22226 Friday, April 9, 2021 Approved
Visual Studio Code (Install) 1.55.0 27620 Wednesday, March 31, 2021 Approved
Visual Studio Code (Install) 1.54.3 48405 Tuesday, March 16, 2021 Approved
Visual Studio Code (Install) 1.54.2 21382 Friday, March 12, 2021 Approved
Visual Studio Code (Install) 1.54.1 28718 Friday, March 5, 2021 Approved
Visual Studio Code (Install) 1.54.0 5983 Thursday, March 4, 2021 Approved
Visual Studio Code (Install) 1.53.2 51371 Friday, February 12, 2021 Approved
Visual Studio Code (Install) 1.53.1 15657 Tuesday, February 9, 2021 Approved
Visual Studio Code (Install) 1.53.0 23012 Thursday, February 4, 2021 Approved
Visual Studio Code (Install) 1.52.1 80896 Thursday, December 17, 2020 Approved
Visual Studio Code (Install) 1.52.0 20801 Friday, December 11, 2020 Approved
Visual Studio Code (Install) 1.51.1 55506 Thursday, November 12, 2020 Approved
Visual Studio Code (Install) 1.51.0 24061 Friday, November 6, 2020 Approved
Visual Studio Code (Install) 1.50.1 44280 Thursday, October 15, 2020 Approved
Visual Studio Code (Install) 1.50.0 24149 Thursday, October 8, 2020 Approved
Visual Studio Code (Install) 1.49.3 20489 Saturday, October 3, 2020 Approved
Visual Studio Code (Install) 1.49.2 23460 Friday, September 25, 2020 Approved
Visual Studio Code (Install) 1.49.1 22986 Friday, September 18, 2020 Approved
Visual Studio Code (Install) 1.49.0 22159 Friday, September 11, 2020 Approved
Visual Studio Code (Install) 1.48.2 33751 Tuesday, August 25, 2020 Approved
Visual Studio Code (Install) 1.48.1 17682 Thursday, August 20, 2020 Approved
Visual Studio Code (Install) 1.48.0 19670 Thursday, August 13, 2020 Approved
Visual Studio Code (Install) 1.47.3 33118 Tuesday, July 28, 2020 Approved
Visual Studio Code (Install) 1.47.2 24839 Friday, July 17, 2020 Approved
Visual Studio Code (Install) 1.47.1 10270 Tuesday, July 14, 2020 Approved
Visual Studio Code (Install) 1.47.0 15120 Friday, July 10, 2020 Approved
Visual Studio Code (Install) 1.46.1 36109 Thursday, June 18, 2020 Approved
Visual Studio Code (Install) 1.46.0 22943 Thursday, June 11, 2020 Approved
Visual Studio Code (Install) 1.45.1 44763 Friday, May 15, 2020 Approved
Visual Studio Code (Install) 1.45.0 18843 Friday, May 8, 2020 Approved
Visual Studio Code (Install) 1.44.2 35884 Friday, April 17, 2020 Approved
Visual Studio Code (Install) 1.44.1 9884 Tuesday, April 14, 2020 Approved
Visual Studio Code (Install) 1.44.0 18391 Thursday, April 9, 2020 Approved
Visual Studio Code (Install) 1.43.2 28813 Wednesday, March 25, 2020 Approved
Visual Studio Code (Install) 1.43.1 19848 Thursday, March 19, 2020 Approved
Visual Studio Code (Install) 1.43.0 26313 Tuesday, March 10, 2020 Approved
Visual Studio Code (Install) 1.42.1 46612 Friday, February 14, 2020 Approved
Visual Studio Code (Install) 1.42.0 20569 Friday, February 7, 2020 Approved
Visual Studio Code (Install) 1.41.1 59403 Friday, December 20, 2019 Approved
Visual Studio Code (Install) 1.41.0 16480 Friday, December 13, 2019 Approved
Visual Studio Code (Install) 1.40.2 27262 Tuesday, November 26, 2019 Approved
Visual Studio Code (Install) 1.40.1 23259 Thursday, November 14, 2019 Approved
Visual Studio Code (Install) 1.40.0 14971 Friday, November 8, 2019 Approved

Discussion for the Visual Studio Code (Install) Package

Ground Rules:

  • This discussion is only about Visual Studio Code (Install) and the Visual Studio Code (Install) 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 (Install), 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