VS Code Installation¶
Visual Studio Code (VS Code) is a free, lightweight code editor that has become the standard tool for data engineers and developers. It runs on macOS, Windows, and Linux.
Why VS Code?¶
- Free and open-source — no license needed
- Built-in terminal — run commands without leaving the editor
- Git integration — see changes, make commits, and push directly from the editor
- Extensions — add support for Python, Jupyter notebooks, AI assistants, and more
- Lightweight — starts fast, uses less than 500 MB on disk
Install VS Code¶
- Go to code.visualstudio.com/download
- Click Download for Mac (it auto-detects Intel vs Apple Silicon)
- Open the downloaded
.zipfile - Drag Visual Studio Code.app to your Applications folder
- Open VS Code from Applications
Add the code command to your terminal:
- Open VS Code
- Press
Cmd + Shift + Pto open the Command Palette - Type
shell commandand select Shell Command: Install 'code' command in PATH
Now you can open any folder from the terminal:
- Go to code.visualstudio.com/download
- Click Download for Windows
- Run the installer (
VSCodeUserSetup-x64-*.exe) - During installation:
- Accept the license agreement
- Check "Add to PATH" (so you can type
codein the terminal) - Check "Add 'Open with Code' action to file context menu" (optional but handy)
- Click Install and Launch
After installation, restart your terminal and verify:
# Download and install the .deb package
sudo apt update
sudo apt install -y wget gpg
wget -qO- https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > packages.microsoft.gpg
sudo install -D -o root -g root -m 644 packages.microsoft.gpg /etc/apt/keyrings/packages.microsoft.gpg
echo "deb [arch=amd64 signed-by=/etc/apt/keyrings/packages.microsoft.gpg] https://packages.microsoft.com/repos/code stable main" | sudo tee /etc/apt/sources.list.d/vscode.list
sudo apt update
sudo apt install -y code
Or use Snap:
Recommended Extensions¶
After installing VS Code, add these extensions for the workshop. Open VS Code and click the Extensions icon in the left sidebar (or press Ctrl/Cmd + Shift + X), then search for each one:
Essential¶
| Extension | What it does |
|---|---|
| Python (by Microsoft) | Python language support, IntelliSense, debugging |
| Jupyter (by Microsoft) | Run Jupyter notebooks inside VS Code |
| GitLens | Enhanced Git integration — see who changed what and when |
Recommended¶
| Extension | What it does |
|---|---|
| Pylance | Fast, feature-rich Python language server |
| autoDocstring | Generate Python docstrings with a shortcut |
| Rainbow CSV | Color-codes CSV columns so they're easier to read |
| Material Icon Theme | Better file icons in the sidebar |
To install from the terminal:
code --install-extension ms-python.python
code --install-extension ms-toolsai.jupyter
code --install-extension eamodio.gitlens
Quick Tour¶
Open a project folder¶
Or in VS Code: File → Open Folder
The integrated terminal¶
Press Ctrl + ` (backtick) to toggle the built-in terminal. This is where you'll run Python scripts, Git commands, and more — without leaving the editor.
Key shortcuts¶
| Shortcut | Action |
|---|---|
Ctrl/Cmd + Shift + P |
Command Palette (search for any action) |
Ctrl + ` |
Toggle terminal |
Ctrl/Cmd + P |
Quick Open (search for files) |
Ctrl/Cmd + B |
Toggle sidebar |
Ctrl/Cmd + S |
Save file |
Ctrl/Cmd + / |
Toggle comment on selected lines |
F5 |
Start debugging |
Select your Python interpreter¶
When you open a Python file, VS Code may ask you to select an interpreter:
- Press
Ctrl/Cmd + Shift + P - Type
Python: Select Interpreter - Choose the one from your
workshopConda environment (e.g.,~/miniforge3/envs/workshop/bin/python)
Verify Your Setup¶
- Open VS Code
- Open the integrated terminal (
Ctrl + `) -
Activate your Conda environment:
-
Create a test file:
-
You should see
VS Code is ready!in the terminal
If you see the output, your editor is set up and ready!
Next: GitHub Account Setup →