How to Install VS Code

Learn how to install VS Code on Windows, macOS, and Linux with a clear, step-by-step guide. Includes prerequisites, OS-specific steps, post-install tips, and troubleshooting for a smooth setup.

Install Manual
Install Manual Team
·5 min read
Quick AnswerSteps

To install VS Code, download the official installer for your operating system (Windows, macOS, or Linux) from the Visual Studio Code site. Run the installer, accept the license, and choose default options unless you have specific needs. On first launch, sign in if you plan to sync settings. After setup, install recommended extensions to tailor VS Code for your workflow.

What is VS Code and why install it

Visual Studio Code (VS Code) is a lightweight, cross-platform code editor designed for quick edits and robust extensions. For homeowners and DIY developers, learning how to install vs code unlocks a powerful tool for writing scripts, configuring dev environments, and debugging tasks. In this section, we explore what VS Code offers, how it fits into a modern development workflow, and why its install is a valuable first step for projects ranging from web pages to automation scripts. You’ll learn the best practices for a clean install, the typical user journey after download, and how to approach the setup with a focus on reliability, speed, and long-term maintainability. This guide uses a practical, task-focused approach that aligns with Install Manual’s standards for clear, actionable instructions.

Supported platforms and system requirements

VS Code runs on Windows, macOS, and Linux, which makes it accessible to most users. For Windows, you’ll typically use the User Installer or System Installer; macOS users install a .dmg package; Linux users choose a DEB/RPM package or a Snap/Flatpak depending on distribution. The official site lists basic requirements: a modest amount of disk space, a compatible processor, and a modern graphics stack. For a smooth experience, ensure you have an active internet connection for the download and optional extension installation. If you’re setting this up on a shared family computer, you may want to install for all users and use per-user settings to avoid conflicts. These details support a smooth installation process and minimize post-install issues.

Downloading the installer and verifying integrity

To begin, visit the official Visual Studio Code website and download the installer appropriate for your platform. Verify you’re using the official domain to avoid tampered files. If a hash or signature is provided, compare it after the download to confirm integrity. This extra step protects your system and ensures you start with a clean, trusted copy of VS Code. If you’re on Linux, you may alternatively use a package manager, which can simplify updates later on. In all cases, keeping your system's date and time in sync improves verification accuracy.

Windows installation steps

Run the downloaded VS Code Setup executable. Accept the license terms and choose whether to add to PATH and register code as the command for opening from the terminal. Choose an install location and select default components; you can deselect features you don’t need. The installer will create Start Menu shortcuts and optionally a desktop icon. After clicking Install, wait for the process to complete. When finished, start VS Code from the Start Menu or the desktop shortcut.

Tip: ensure your security policies allow the installer to modify system paths without triggering blocked-script prompts; this reduces post-install issues.

macOS installation steps

Open the downloaded .dmg and drag Visual Studio Code to the Applications folder. Eject the disk image and launch VS Code from Applications. Optionally, install the code command in PATH by opening the Command Palette (Ctrl+Shift+P) and typing 'Shell Command: Install' to enable 'code' in the terminal. If you use macOS Gatekeeper, you may need to right-click and choose Open to bypass the warning on first run. After first launch, you can customize settings and install essential extensions.

Linux installation steps

Linux users have several packaging options. For Debian-based distributions, install using: sudo apt install code.deb or sudo dpkg -i code.deb; for Red Hat-based, use: sudo rpm -i code.rpm; for Arch, use: pacman -S code or an AUR helper. You can also install VS Code via Snap or Flatpak if your distro supports it. After installation, launch from the terminal with code. Install extensions and adjust preferences to match your development workflow.

Post-install configuration and first run

On first launch, VS Code will offer to sign in and enable Settings Sync. Sign in with your Microsoft or GitHub account to sync across devices. Install recommended extensions like Python, ESLint, Prettier, and GitLens depending on your workflow. Customize theme, font size, and keyboard shortcuts; tweak editor settings such as tab size, line numbers, auto-save, and bracket pair colorization to suit your preferences. The integrated terminal provides quick access to your project tools, and workspace settings help manage project-specific preferences without affecting other projects.

Installing essential extensions and settings

Extensions extend VS Code’s core capabilities. Start with Python (or your language of choice), ESLint/Prettier for code quality, Live Server for quick web previews, GitLens for Git insights, and Bracket Pair Colorizer for readability. Use the Extensions view to search, install, and manage them. Persist your preferences by creating a workspace file for each project, and enable Settings Sync to ensure your extensions travel with you across devices.

Settings Sync and cloud preferences

Settings Sync lets you carry across key preferences, extensions, and UI customizations. Enable it from the Settings gear in the lower-left corner, sign in with your linked account, and select what to sync (Settings, Extensions, Keybindings, UI State). This feature is especially useful for developers who switch between machines or for teams who want consistency across workstations. Regularly review synced items to keep sensitive configurations secure and relevant to your current setup.

Authority sources

Official VS Code documentation: https://code.visualstudio.com/docs Microsoft Learn: https://learn.microsoft.com/en-us/visualstudio-code/get-started

0

Tools & Materials

  • Internet connection(Stable broadband to download the installer and extensions)
  • Computer with admin rights(Windows admin, macOS password, or Linux sudo access)
  • VS Code installer (official)(Download from https://code.visualstudio.com)
  • Optional extensions list(e.g., Python, ESLint, Prettier, Live Server, GitLens)
  • Linux package manager ready(apt/dnf/pacman depending on distro)

Steps

Estimated time: Total: 30-60 minutes

  1. 1

    Download the official installer

    Navigate to the official Visual Studio Code site and choose the OS-specific installer. Save the file in a known location. This step begins your journey to a clean, reliable editor. Ensure you’re on the legitimate domain to avoid tampered software.

    Tip: Verify the URL and check for a recent timestamp or hash if provided.
  2. 2

    Run the installer and accept prompts

    Launch the installer and accept the license terms. Choose whether to add VS Code to PATH (recommended) and register the code command in the shell. Select the install location and proceed with default components unless you have a specific need.

    Tip: If prompted by security software, allow the installer to modify system settings.
  3. 3

    Install and customize options

    Choose install options that match your workflow, such as desktop or Start Menu shortcuts. Confirm the installation location and wait for the setup to finish. This establishes the baseline environment for VS Code.

    Tip: Keep the default options for a quick setup unless you know you’ll customize later.
  4. 4

    Launch VS Code

    Open VS Code from the Start Menu (Windows), Applications (macOS), or your launcher (Linux). Confirm the initial UI loads without errors and check for the welcome screen.

    Tip: If VS Code doesn’t launch, try running code --version in a terminal to verify the path.
  5. 5

    Sign in for Settings Sync (optional)

    Sign in with a Microsoft or GitHub account to enable Settings Sync. This will keep extensions, settings, and themes consistent across devices.

    Tip: If privacy is a concern, review which items are selected for sync before enabling.
  6. 6

    Install recommended extensions

    From the Extensions view, install recommended extensions that match your language and framework. This quick setup jump-starts your productive environment.

    Tip: Avoid overloading with too many extensions at first; you can add more later as needed.
  7. 7

    Configure core settings

    Adjust essential editor preferences such as font size, tab size, line wrapping, and auto-save. Create a workspace-specific settings file for project-level preferences.

    Tip: Use a consistent indentation and formatting style across projects.
  8. 8

    Test the setup

    Open a sample project and run basic tasks to ensure the terminal, debugger, and extensions work as expected. Confirm you can run simple commands and preview changes in real-time.

    Tip: Document any issues for later troubleshooting.
Pro Tip: Set up Settings Sync after installing a few extensions to ensure they travel with you.
Warning: Avoid downloading from third-party mirrors; always use the official site to prevent compromised code.
Note: Customize keyboard shortcuts gradually; you can export/import them later to preserve workspace familiarity.

Got Questions?

Is VS Code free?

Yes. VS Code is free to download and use, and it’s actively maintained as an open-source project with optional paid features through Microsoft services.

Yes, VS Code is free to download and use.

Do I need internet to install?

You should have an internet connection to download the installer and any extensions you plan to use. Some Linux installations can use offline packages, but a network connection is still required for updates.

Yes, you’ll need the internet to download and update VS Code.

Which OS does VS Code support?

VS Code supports Windows, macOS, and most Linux distributions. Use OS-specific installation methods for best results, and consult the official docs for any distro-specific caveats.

It runs on Windows, macOS, and Linux; follow OS-specific steps.

Can I sync settings across devices?

Yes. Use Settings Sync to share extensions, themes, keybindings, and settings across devices. Sign in with a linked account to enable cross-device consistency.

You can sync your settings across devices with Settings Sync.

How do I install extensions?

Open the Extensions view in VS Code, search for extensions (e.g., Python, ESLint, Prettier), and install those that fit your workflow. Restart VS Code if prompted.

Install extensions from the Extensions view to tailor your setup.

What if the installer fails?

Check your internet connection, verify you downloaded the official installer, ensure your security software isn’t blocking the installer, and try reinstalling. Review system requirements for any platform-specific needs.

If it fails, verify the download and try again with proper permissions.

Watch Video

Main Points

  • Install VS Code from official sources to ensure integrity
  • Follow OS-specific steps to avoid configuration issues
  • Enable Settings Sync to keep environments consistent
  • Install essential extensions early to boost productivity
  • Test the setup with a sample project to catch issues early
Process: steps to install VS Code
VS Code installation process

Related Articles