Skip to content

Microsoft Visual Studio Code

Your Name edited this page Mar 29, 2026 · 5 revisions

Walkthrough Video

Below is a video walkthrough of the steps on this page:

OSDWorkspace Prerequisites: Visual Studio Code

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.

Current Version: Visual Studio Code 1.113 (March 25, 2026) — Release Notes

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"'

Updating Visual Studio Code

To update VS Code to the latest version using winget:

winget upgrade -e --id Microsoft.VisualStudioCode

To update VS Code Insiders:

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

Recommended Extensions

Install extensions from within VS Code (Ctrl+Shift+X) or from the command line using the code CLI.

PowerShell Development

# PowerShell language support
code --install-extension ms-vscode.powershell

# GitHub Copilot AI assistant
code --install-extension GitHub.copilot
code --install-extension GitHub.copilot-chat
Extension ID Description
PowerShell ms-vscode.powershell IntelliSense, debugging, and formatting for PowerShell
GitHub Copilot GitHub.copilot AI-powered code completion
GitHub Copilot Chat GitHub.copilot-chat AI chat assistant for coding questions and edits
GitLens eamodio.gitlens Enhanced Git capabilities and history exploration

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 (see Recommended Extensions above).
  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

Clone this wiki locally