Microsoft Visual Studio Code - OSDeploy/OSD.Workspace GitHub Wiki

Quick Setup

winget install -e --id Microsoft.VisualStudioCode --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'

Visual Studio Code Installation and Setup

Refer to the Visual Studio Code Setup Guide for official documentation and troubleshooting.

Installing Visual Studio Code

You can install Visual Studio Code using the Windows Package Manager (winget).

Standard installation:

winget install -e --id Microsoft.VisualStudioCode

Recommended options:

winget install -e --id Microsoft.VisualStudioCode --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'

Recommended Installer Options

Option Description
/SILENT Runs the installer in silent mode (no UI)
addcontextmenufiles Adds "Open with Code" to the context menu for files
addcontextmenufolders Adds "Open with Code" to the context menu for folders
associatewithfiles Associates supported file types with VS Code
addtopath Adds VS Code to the system PATH
!runcode Prevents VS Code from running after installation

Note: The ! before an option disables that task. For example, !runcode means VS Code will not launch after install.

Installing Visual Studio Code Insiders

Visual Studio Code Insiders is a preview version with the latest features and updates.

Standard installation:

winget install -e --id Microsoft.VisualStudioCode.Insiders

Recommended options:

winget install -e --id Microsoft.VisualStudioCode.Insiders --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'

Post-Installation Steps

  1. Launch Visual Studio Code from the Start Menu or by typing code in a new terminal window.
  2. Sign in with your Microsoft or GitHub account to sync settings and extensions (optional).
  3. Install recommended extensions for your workflow (e.g., PowerShell, Python, GitLens, etc.).
  4. Configure settings by navigating to File > Preferences > Settings or pressing Ctrl+,.
  5. Update regularly to receive the latest features and security updates.

Additional Resources