Overview
VS Code is the recommended editor for software engineering courses. This tutorial will help you configure a professional development environment for React, TypeScript, Firebase, and version control.
Step 1: Install VS Code
On Mac
- Visit code.visualstudio.com
- Download the Mac installer
- Extract and drag Visual Studio Code to your Applications folder
- Launch from Applications folder or Spotlight (Command + Space)
On Windows
- Visit code.visualstudio.com
- Download and run the Windows installer
- Follow the installation wizard
- Complete installation and launch
Enable Command Line Integration
- Open VS Code
- Press
Command+Shift+P(Mac) orCtrl+Shift+P(Windows) - Type “Shell Command: Install ‘code’ command in PATH”
- Select and run
This lets you type code . in any terminal to open VS Code.
Step 2: Install Node.js
VS Code development requires Node.js and npm (included with Node).
- Visit nodejs.org
- Download the current LTS version (22.x or newer)
- Install following platform-specific instructions
Verify Installation
node --version
npm --version
Both should show current versions (Node 20+ and npm 10+).
Step 3: Configure Git and GitHub
Install Git
- Download from git-scm.com
- During setup, configure VS Code as your commit editor
- Verify installation:
git --version
Should show version 2.44 or newer.
Configure Git Locally
git config --global -e
This opens your Git configuration in VS Code. Ensure your email and name are set correctly.
Set Up GitHub Desktop
- Download from desktop.github.com
- Sign in with your GitHub account
- Configure your commit name and email
Install GitHub Extension for VS Code
- Open VS Code Extensions (
Cmd+Shift+XorCtrl+Shift+X) - Search “GitHub Pull Requests and Issues”
- Install the extension by GitHub
- Sign in when prompted
Verify Git Connection
git clone https://github.com/toddwseattle/pretty-vitest-react-ts-template.git test-repo
If this succeeds, your Git setup is working.
Step 4: Configure VS Code for Development
Install Essential Extensions
Open VS Code Extensions and install:
- ESLint (Microsoft) - Code linting and error detection
- Prettier - Code formatter (Prettier) - Automatic code formatting
- CSpell (Street Side Software) - Spell checking in code
- Vitest (ZixuanChen) - Test framework integration
- Vitest Runner (Raz Luvaton) - UI for running tests
- Jest (Orta) - Additional test support and outlines
- Firebase Explorer (Google) - Firebase resource management
Configure VS Code Settings
Press Cmd + , (Mac) or Ctrl + , (Windows) to open Settings, then search for and enable:
- Format On Save - Auto-format code when saving
- Code Actions On Save - Add
source.fixAll.eslintto fix ESLint issues automatically - Prettier: Formatter - Set to
esbenp.prettier-vscode - Prettier: Require Config - Enable to use project Prettier configuration
Your settings should include something like:
{
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[jsx]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
}
}
Step 5: Enable GitHub Copilot Pro for Students
As a verified student, you have free access to GitHub Copilot Pro—a significant upgrade from the free tier. Copilot Pro gives you unlimited code suggestions and access to advanced AI models. We wll use agent mode as part of our projects; and in the labs there will be instructions for copilot to help you learn more effectively.
Get GitHub Student Benefits
- Visit github.com/education/students
- Click “Get verified” or “Join GitHub Education”
- Verify your student status using your school email
- Once verified, you automatically get:
- Free GitHub Copilot Pro (normally $10/month)
- Free GitHub Pro account
- GitHub Codespaces hours to use vscode in the cloud
Install Copilot in VS Code
- Open VS Code Extensions (
Cmd+Shift+XorCtrl+Shift+X) - Search “GitHub Copilot Chat”
- Install the extension by GitHub
- Install “GitHub Copilot” (main extension) as well
- Sign in with your GitHub account
Verify Copilot is Active
- Open a code file in VS Code
- Start typing a function or code block
- You should see AI-powered suggestions appearing
- Press
Tabto accept a suggestion orEscapeto dismiss
You’ll know Copilot Pro is active when you see the Copilot icon in the bottom status bar (showing a Copilot symbol).
Using Copilot in Your Projects
Press Ctrl+I (Windows) or Cmd+I (Mac) to open Copilot inline chat:
- Ask Copilot to explain code
- Request code generation
- Ask for debugging help
- Get refactoring suggestions
Step 6: Set Up Firebase CLI
Firebase provides backend services for projects.
npm install -g firebase-tools
Verify installation:
firebase --version
Should show version 13 or higher.
Login to Firebase:
firebase login
Note: Use a personal Google account (not your school email - university accounts don’t support Firebase).
Step 7: Verify Your Complete Setup
Run these commands to confirm everything is working:
# Check Node and npm
node --version
npm --version
# Check Git
git --version
# Check Firebase
firebase --version
# Test VS Code command line
code .
All should return valid version numbers.
Troubleshooting
TypeScript Path Aliases Not Working
If VS Code doesn’t recognize path aliases in tsconfig.json:
- Make sure your
tsconfig.jsonhas"baseUrl": "." - Restart TypeScript server:
Cmd/Ctrl+Shift+P→ “TypeScript: Restart TS Server”
Prettier or ESLint Errors
- Verify VS Code settings are configured correctly (see Step 4)
- Check that project has a
.prettierrcorprettier.config.js - Press
Cmd + .orCtrl + .to see available fixes - Use Command Palette → “ESLint: Fix all auto-fixable problems”
Git Authentication Issues
- Sign out and back into GitHub Desktop
- Retry
git cloneto test authentication - For persistent issues, generate a Personal Access Token on GitHub and use it for HTTPS authentication
Extensions Not Working
- Verify extension is properly installed in Extensions panel
- Try reloading VS Code:
Cmd/Ctrl+Shift+P→ “Developer: Reload Window”
Next Steps
Your VS Code environment is now configured. You’re ready to:
- Clone course repositories
- Work with React and TypeScript projects
- Write and run tests with Vitest
- Manage code with Git and GitHub
- Deploy projects with Firebase
For specific course requirements or setup issues, reach out to the instructor or teaching assistant.