1. Download and Install VS Code
- Go to the Visual Studio Code website.
- Click the download button for macOS.
- Open the
.zipfile that downloads to extract the VS Code application. - Drag the Visual Studio Code.app to your Applications folder.
2. Add VS Code to PATH (Optional)
- Open VS Code.
- Press
Command+Shift+Pto open the command palette. - Type
Shell Command: Install 'code' command in PATHand select it. - This enables you to launch VS Code from the terminal using the
codecommand.
3. Install Extensions
- Open VS Code and click on the Extensions icon on the left sidebar (or press
Command+Shift+X). - Search for and install useful extensions like:
- Python (for Python development).
- C/C++ (for C/C++ development).
- Prettier (code formatter).
- GitLens (Git tools).
- Live Server (for web development).
- Install any other extensions relevant to your projects or courses.
4. Install Homebrew (Optional)
- Open Terminal and type:bashCopyEdit
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - Use Homebrew to install development tools like Node.js or Python as needed:bashCopyEdit
brew install node brew install python
5. Sync Settings (Optional)
- Log in to VS Code using your GitHub or Microsoft account.
- Use the built-in Settings Sync to save and sync extensions, themes, and configurations across devices.
Setting up VS Code on Windows 11
1. Download and Install VS Code
- Go to the Visual Studio Code website.
- Click the download button for Windows.
- Run the downloaded installer and follow the installation wizard:
- Agree to the license agreement.
- Select the option to add VS Code to the system PATH (recommended).
- Choose additional tasks like creating a desktop icon if desired.
- Finish the installation process.
2. Install Extensions
- Open VS Code and click on the Extensions icon on the left sidebar (or press
Ctrl+Shift+X). - Search for and install useful extensions such as:
- Python.
- C/C++.
- Prettier.
- GitLens.
- Live Server.
3. Install Git (Optional)
- Download Git from git-scm.com.
- Run the installer and follow the instructions.
- Select the option to integrate Git with VS Code during installation.
- Verify Git is installed by typing the following in a command prompt or terminal:bashCopyEdit
git --version
4. Install Node.js (Optional)
- Download Node.js from nodejs.org.
- Run the installer and follow the instructions.
- Verify the installation by typing in Command Prompt:bashCopyEdit
node -v npm -v
5. Sync Settings (Optional)
- Log in to VS Code using your GitHub or Microsoft account.
- Use Settings Sync to save and sync extensions, themes, and configurations across devices.
Tips for Both Platforms
- Use the Command Palette (
Command+Shift+Pon macOS orCtrl+Shift+Pon Windows) to quickly find commands and features. - Learn VS Code shortcuts to improve productivity.
- Regularly update VS Code and extensions for the latest features and bug fixes.
By following these steps, you’ll have a fully functional VS Code environment ready for software development on either macOS or Windows 11.
