Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

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

Visual Studio Code

1.5

Package test results are passing.

This package was approved as a trusted package on 9/9/2016.

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

Package Specifics

The package uses default install options except that it adds context menu entries and Visual Studio Code isn't started after installation.

Package Parameters

The following package parameters can be set:

  • /NoDesktopIcon - Don't add a desktop icon for Visual Studio Code.
  • /NoQuicklaunchIcon - Don't add an icon for Visual Studio Code 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 path.

These parameters can be passed to the installer with the use of -params.
For example: -params '"/NoDesktopIcon /DontAddToPath"'.

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

C:\> choco install visualstudiocode --version 1.5

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

C:\> choco upgrade visualstudiocode --version 1.5

Files

Hide
  • Tools\ChocolateyInstall.ps1 Show
    # Default values
    $createDesktopIcon = $true
    $createQuickLaunchIcon = $true
    $addContextMenuFiles = $true
    $addContextMenuFolders = $true
    $addToPath = $true
    
    $arguments = @{}
    $packageParameters = $env:chocolateyPackageParameters
    if ($packageParameters)
    {
          $match_pattern = "\/(?<option>([a-zA-Z]+)):(?<value>([`"'])?([a-zA-Z0-9- _\\:\.]+)([`"'])?)|\/(?<option>([a-zA-Z]+))"
          $option_name = 'option'
          $value_name = 'value'
          if ($packageParameters -match $match_pattern )
          {
              $results = $packageParameters | Select-String $match_pattern -AllMatches
              $results.matches | % {
                $arguments.Add(
                    $_.Groups[$option_name].Value.Trim(),
                    $_.Groups[$value_name].Value.Trim())
              }
          }
          else
          {
              Throw "Package Parameters were found but were invalid (REGEX Failure)"
          }
    
          if ($arguments.ContainsKey("nodesktopicon"))
          {
              Write-Host "nodesktopicon"
              $createDesktopIcon = $false
          }
    
          if ($arguments.ContainsKey("noquicklaunchicon"))
          {
              Write-Host "noquicklaunchicon"
              $createQuickLaunchIcon = $false
          }
    
          if ($arguments.ContainsKey("nocontextmenufiles"))
          {
              Write-Host "nocontextmenufiles"
              $addContextMenuFiles = $false
          }
    
          if ($arguments.ContainsKey("nocontextmenufolders"))
          {
              Write-Host "nocontextmenufolders"
              $addContextMenuFolders = $false
          }
    
          if ($arguments.ContainsKey("dontaddtopath"))
          {
              Write-Host "dontaddtopath"
              $addToPath = $false
          }
    }
    else
    {
        Write-Debug "No Package Parameters Passed in"
    }
    
    $mergeTasks = "!runCode"
    if ($createDesktopIcon)
    {
        $mergeTasks = $mergeTasks + ",desktopicon"
    }
    
    if ($createQuickLaunchIcon)
    {
        $mergeTasks = $mergeTasks + ",quicklaunchicon"
    }
    
    if ($addContextMenuFiles)
    {
        $mergeTasks = $mergeTasks + ",addcontextmenufiles"
    }
    
    if ($addContextMenuFolders)
    {
        $mergeTasks = $mergeTasks + ",addcontextmenufolders"
    }
    
    if ($addToPath)
    {
        $mergeTasks = $mergeTasks + ",addtopath"
    }
    
    Write-Host "Merge Tasks: "
    Write-Host "$mergeTasks"
    
    $packageName = 'VisualStudioCode'
    $installerType = 'exe'
    $silentArgs = "/silent /mergetasks=$mergeTasks /log=""$env:temp\vscode.log"""
    $32BitUrl  = 'https://az764295.vo.msecnd.net/stable/4fc690be310dd02e0ab6529c0b9bf348a8b26a19/VSCodeSetup-stable.exe'
    $checksum = "D835DF1D5A816CD52E5FFCB70830B056CC92A306038444A5288F5AAE996C3BC1"
    $checksumType = "sha256"
    $validExitCodes = @(
        0 # success
    )
    
    Install-ChocolateyPackage -PackageName "$packageName" -FileType "$installerType" -SilentArgs "$silentArgs" -Url "$32BitUrl" -ValidExitCodes $validExitCodes -Checksum "$checksum" -ChecksumType "$checksumType"
    
  • Tools\VSCodeSetup-stable.exe.ignore
  • VisualStudioCode.png

Virus Scan Results

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.

Dependencies

Package Maintainer(s)

Software Author(s)

  • Microsoft

Tags

Release Notes

https://code.visualstudio.com/Updates

Version History

Version Downloads Last updated Status
Visual Studio Code 1.23.1 4607 Friday, May 11, 2018 approved
Visual Studio Code 1.23.0 11121 Thursday, May 3, 2018 approved
Visual Studio Code 1.22.2 26590 Friday, April 13, 2018 approved
Visual Studio Code 1.22.1 81 Friday, April 6, 2018 approved
Visual Studio Code 1.21.1 31882 Thursday, March 15, 2018 approved
Visual Studio Code 1.21.0 9600 Thursday, March 8, 2018 approved
Visual Studio Code 1.20.1 25649 Wednesday, February 14, 2018 approved
Visual Studio Code 1.20.0 9975 Thursday, February 8, 2018 approved
Visual Studio Code 1.19.3 15916 Friday, January 26, 2018 approved
Show More

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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok