Visual Studio on Windows

Installation:
  1. Download the Visual Studio installer for Windows.
  2. Once it is downloaded, run the installer (VisualStudioSetup.exe). This will only take a minute.
  3. By default, Visual Studio is installed under C:\Users\{Username}\AppData\Local\Programs\Microsoft Visual Studio.

Alternatively, you can also download a Zip archive, extract it and run Code from there.

Tip: Setup will add Visual Studio to your %PATH%, so from the console you can type code . to open Visual Studio on that folder. You will need to restart your console after the installation for the change to the %PATH% environmental variable to take effect.

User setup versus system setup:

Visual Studio provides both Windows user and system level setups.

The user setup does not require Administrator privileges to run as the location will be under your user Local AppData ( LOCALAPPDATA ) folder. Since it requires no elevation, the user setup is able to provide a smoother background update experience. This is the preferred way to install Visual Studio on Windows.

Note: When running Visual Studio as Administrator in a user setup installation, updates will be disabled.

The system setup requires elevation to Administrator privileges to run and will place the installation under the system's Program Files. The in-product update flow will also require elevation, making it less streamlined than the user setup. On the other hand, installing Visual Studio using the system setup means that it will be available to all users in the system.

See the Download Visual Studio page for a complete list of available installation options.

Updates:

Visual Studio ships monthly releases and supports auto-update when a new release is available. If you're prompted by Visual Studio, accept the newest update and it will be installed (you won't need to do anything else to get the latest bits).

Note: You can disable auto-update if you prefer to update Visual Studio on your own schedule.

Common questions:

1.What command-line arguments are supported by the Windows Setup?

Visual Studio uses Inno Setup to create its setup package for Windows. Thus, all the Inno Setup command-line switches are available for use.

Additionally, you can prevent the Setup from launching Visual Studio after completion with /mergetasks=!runcode .

2.I'm having trouble with the installer

Try using the zip file instead of the installer. To use this, unzip Visual Studio in your AppData\Local\Programs folder.

Note: When Visual Studio is installed via a Zip file, you will need to manually update it for each releases.

3.Icons are missing

I installed Visual Studio Code on my Windows 8 machine. Why are some icons not appearing in the workbench and editor?

Visual Studio uses SVG icons and we have found instances where the .SVG file extension is associated with something other than image/svg+xml. We're considering options to fix it, but for now here's a workaround:

Using the Command Prompt:

  1. Open an Administrator Command Prompt.
  2. Type REG ADD HKCR\.svg /f /v "Content Type" /t REG_SZ /d image/svg+xml.

Using the Registry Editor (regedit):

  1. Start regedit.
  2. Open the HKEY_CLASSES_ROOT key.
  3. Find the .svg key.
  4. Set its Content Type Data value to image/svg+xml.
  5. Exit regedit.

For more information visit Visual Studio.

© Skote.