-
Notifications
You must be signed in to change notification settings - Fork 7
Microsoft Visual Studio Code
Below is a video walkthrough of the steps on this page:
OSDWorkspace Prerequisites: Visual Studio Code
winget install -e --id Microsoft.VisualStudioCode --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'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
You can install Visual Studio Code using the Windows Package Manager (winget).
Standard installation:
winget install -e --id Microsoft.VisualStudioCodeRecommended options:
winget install -e --id Microsoft.VisualStudioCode --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'| 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,!runcodemeans VS Code will not launch after install.
Visual Studio Code Insiders is a preview version with the latest features and updates.
Standard installation:
winget install -e --id Microsoft.VisualStudioCode.InsidersRecommended options:
winget install -e --id Microsoft.VisualStudioCode.Insiders --override '/SILENT /mergetasks="!runcode,addcontextmenufiles,addcontextmenufolders,associatewithfiles,addtopath"'To update VS Code to the latest version using winget:
winget upgrade -e --id Microsoft.VisualStudioCodeTo update VS Code Insiders:
winget upgrade -e --id Microsoft.VisualStudioCode.InsidersInstall extensions from within VS Code (Ctrl+Shift+X) or from the command line using the code CLI.
# 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 |
-
Launch Visual Studio Code from the Start Menu or by typing
codein a new terminal window. - Sign in with your Microsoft or GitHub account to sync settings and extensions (optional).
- Install recommended extensions for your workflow (see Recommended Extensions above).
-
Configure settings by navigating to
File > Preferences > Settingsor pressingCtrl+,. - Update regularly to receive the latest features and security updates.