TechBuzzPro

Where does Visual Studio Code install on Windows, macOS, and Linux?

· 4 min read · Mac

In this article
  1. Where does VS Code install on Windows?
  2. Where does VS Code install on macOS?
  3. Where does VS Code install on Linux?
  4. How does VS Code's install location differ from other editors?
  5. What should you do after finding the install folder?

Visual Studio Code installs to a system folder that depends on your operating system and the installer type. On Windows the system installer puts it in C:\Program Files\Microsoft VS Code\, while the user‑level installer uses C:\Users\your‑name\AppData\Local\Programs\Microsoft VS Code\. On macOS the app bundle lives in /Applications/Visual Studio Code.app. Linux places the files under /usr/share/code/ for package installs or /snap/code/current/ for Snap packages.

Where does VS Code install on Windows?

The default system installer writes the program files to C:\Program Files\Microsoft VS Code\. A separate user‑only installer writes to the local app data path C:\Users\your‑name\AppData\Local\Programs\Microsoft VS Code\. Both locations contain the Code.exe executable, the resources folder, and the default extensions folder under the user profile.

How to locate the folder quickly

  1. Open the Start menu and type "Visual Studio Code".
  2. Right‑click the entry and choose "Open file location".
  3. The shortcut that appears points to the installation folder; right‑click it again and select "Open file location" to see the actual directory.

Signs that you are looking at the correct folder include the presence of Code.exe, a resources subfolder, and a Code.exe size of around 50 MB.

Common misconception

Many users assume VS Code always resides in C:\Program Files. The user‑level installer places it in the local app data path, which is hidden by default and therefore easy to miss.

Where does VS Code install on macOS?

The typical installation creates an app bundle at /Applications/Visual Studio Code.app. If you used Homebrew Cask, the bundle also ends up in /Applications, but a hidden copy may exist under /usr/local/Caskroom/visual-studio-code. Inside the bundle you will find Contents/MacOS/Electron, which is the executable.

How to open the bundle in Finder

  1. Open Finder and go to the Applications folder.
  2. Locate "Visual Studio Code.app".
  3. Right‑click the app and choose "Show Package Contents" to view the internal structure.

Look for the Resources folder and the Info.plist file; their presence confirms you are inside the correct bundle.

Common misconception

Some users think the app lives in their home folder's ~/Applications. The official installer places it directly in the system /Applications directory unless you move it manually.

Where does VS Code install on Linux?

When you install the .deb or .rpm package, the files are placed in /usr/share/code/ and a symbolic link /usr/bin/code is created for command‑line access. A Snap installation stores everything under /snap/code/current/, with the binary available as /snap/bin/code. The extensions directory is always under the user's home at ~/.vscode/extensions.

How to verify the installation path

  1. Open a terminal.
  2. Run which code. The output shows the path of the executable (/usr/bin/code or /snap/bin/code).
  3. Run code --verbose and look for the line "Resolved path:" which prints the full installation directory.

Typical signs of a package install include the presence of /usr/share/code/resources and a bin folder containing the code launcher.

Common misconception

It is easy to assume a Linux install always lands in /opt. Only custom tarball extracts might use that location; official packages use /usr/share or the Snap directory.

How does VS Code's install location differ from other editors?

Sublime Text usually installs to C:\Program Files\Sublime Text 3\ on Windows and to /opt/sublime_text/ on Linux. Atom places its files in the user profile at C:\Users\name\AppData\Local\atom\ on Windows and /usr/share/atom/ on Linux. VS Code’s user‑level installer mirrors Atom’s user‑profile approach on Windows, while its system installer follows the same pattern as Sublime Text. The key difference is that VS Code also creates a separate extensions folder (%USERPROFILE%\.vscode\extensions or ~/.vscode/extensions) that is always user‑specific, regardless of the main install location.

What should you do after finding the install folder?

Now that you know where VS Code lives, you can perform a few useful actions.

Add the command‑line launcher to your PATH (Windows)

  1. Open the Start menu, search for "Edit the system environment variables" and open it.
  2. Click "Environment Variables…" and edit the Path entry under your user variables.
  3. Add the folder C:\Users\your‑name\AppData\Local\Programs\Microsoft VS Code\bin (or the Program Files path if you used the system installer).
  4. Click OK and open a new Command Prompt. Typing code should launch VS Code.

Locate your extensions and settings (all platforms)

Extensions are stored in a hidden folder named .vscode inside your home directory. On Windows it is %USERPROFILE%\.vscode\extensions. On macOS and Linux it is ~/.vscode/extensions. Settings and keybindings live in %APPDATA%\Code\User\ (Windows) or ~/Library/Application Support/Code/User/ (macOS) or ~/.config/Code/User/ (Linux). If you need to back up or migrate, copy these folders.

Can I move VS Code after installation?

You can move the folder for a user‑level install, but you must also update any shortcuts and the PATH entry that points to the bin subfolder. A system‑level install should stay in Program Files to avoid permission issues.

How to uninstall VS Code completely?

  1. On Windows, run "Add or remove programs", select Visual Studio Code, and click Uninstall.
  2. Delete any remaining folders at the install path and the .vscode directory if you want to remove extensions.
  3. On macOS, drag Visual Studio Code.app from the Applications folder to Trash, then delete ~/Library/Application Support/Code and ~/.vscode if desired.
  4. On Linux, use the package manager (e.g., sudo apt remove code or sudo snap remove code) and then delete ~/.vscode and ~/.config/Code for a clean slate.

Following these steps ensures no stray files remain and that a fresh install will start from a clean state.