-
Notifications
You must be signed in to change notification settings - Fork 8
Microsoft Visual Studio Code
Michael Escamilla edited this page Sep 5, 2025
·
5 revisions
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.
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"'-
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 (e.g., PowerShell, Python, GitLens, etc.).
-
Configure settings by navigating to
File > Preferences > Settingsor pressingCtrl+,. - Update regularly to receive the latest features and security updates.