Instructions for Installing Visual Studio Code (VS Code) on macOS and Windows
macOS
Step 1: Download VS Code
- Open your browser and go to the VS Code official download page:
https://code.visualstudio.com/Download - Under the macOS section, click the “Universal” download button to download the
.dmgfile.
Step 2: Install VS Code
- Once the download is complete, open the
.dmgfile. - Drag the Visual Studio Code icon to the Applications folder.
- Open the Applications folder and double-click Visual Studio Code to launch it.
Step 3: Add VS Code to Your Path (Optional)
To make VS Code accessible from the terminal, add it to your PATH:
- Launch VS Code.
- Press
Command + Shift + Pto open the Command Palette. - Type and select
Shell Command: Install 'code' command in PATH.
You can now open VS Code from the terminal by typing code.
Step 4: Install GitHub Copilot Extension
- Open VS Code.
- Click the Extensions View icon on the Activity Bar (on the left) or press
Command + Shift + X. - Search for GitHub Copilot and click Install.
- Follow the on-screen instructions to sign in with your GitHub account.
Windows
Step 1: Download VS Code
- Open your browser and go to the VS Code official download page:
https://code.visualstudio.com/Download - Under the Windows section, click the “User Installer” or “System Installer” download button for 64-bit.
Step 2: Install VS Code
- Run the downloaded
.exeinstaller. - Follow the installation wizard:
- Accept the license agreement.
- Choose the installation location (default is fine).
- Check the box for “Add to PATH” during the installation process.
- Click Install.
- Once installed, check the box to launch VS Code and click Finish.
Step 3: Open VS Code from the Command Line (Optional)
If you checked “Add to PATH” during installation, you can use the code command in the terminal or command prompt to open VS Code. For example:
code .
Step 4: Install GitHub Copilot Extension
- Open VS Code.
- Click the Extensions View icon on the Activity Bar (on the left) or press
Ctrl + Shift + X. - Search for GitHub Copilot and click Install.
- Follow the on-screen instructions to sign in with your GitHub account.
Post-Installation Tips for Both macOS and Windows
- Sign in to GitHub: After installing the GitHub Copilot extension, you will be prompted to log in to your GitHub account.
- Install Additional Extensions: Consider installing popular extensions like:
- Ruby: For syntax highlighting and IntelliSense.
- Rails: For Ruby on Rails-specific support.
- PostgreSQL: For database interaction.
- Update Settings: Customize your editor settings by navigating to
File > Preferences > Settings(Windows) orCode > Preferences > Settings(macOS).
By following these steps, you’ll have VS Code installed and ready to leverage GitHub Copilot for your coding projects!
