Developer ToolsVS Code
toolsvscodeGuideBeginner
VS Code: Installation & First Steps
Complete guide to installing Visual Studio Code across macOS, Linux, and Windows, enabling CLI shell integration (code command), and initial setup.
Verified: 2026-09-30
Tested on:vscode 1.93.x
Platforms:
linuxmacoswindows
#vscode#installation#editor#tools
Visual Studio Code (VS Code) is an open-source, extensible code editor developed by Microsoft, supporting almost every programming language and runtime.
Installation by Platform
macOS
- Download the Universal
.zipor.dmgfrom code.visualstudio.com. - Drag
Visual Studio Code.appinto your/Applicationsfolder. - Enable the
codeterminal command:- Open VS Code.
- Press Cmd + Shift + P to open Command Palette.
- Type
Shell Command: Install 'code' command in PATHand press Enter.
Linux (Ubuntu / Debian)
sudo apt update
sudo apt install software-properties-common apt-transport-https wget -y
wget -q https://packages.microsoft.com/keys/microsoft.asc -O- | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main"
sudo apt update
sudo apt install codeWindows
- Download the User Installer (64-bit)
.exefrom code.visualstudio.com. - Run installer and ensure "Add to PATH (requires shell restart)" and "Register Code as an editor for supported file types" are checked.
Launching Projects from Terminal
Once the code CLI is in your path:
# Open current directory in VS Code
code .
# Open a specific file
code src/index.ts
# Open a file at a specific line and column
code -g src/index.ts:42:10
# Compare two files (Diff Editor)
code --diff fileA.js fileB.jsRelated Guides
Developer Tools Overview & Ecosystem
Complete guide to modern developer tools, editors, terminals, debugging utilities, API clients, and productivity enhancers.
VS Code: Settings & Configuration (`settings.json`)
Complete guide to VS Code settings, user vs workspace settings, format on save, font ligatures, minimap customization, and recommended developer settings.