Shaun Luttin
Shaun Luttin

Reputation: 141522

Visual Studio Code install location

I installed Visual Studio Code a few days ago, and now I can't find the executable on my machine. Where is it?

I have checked Programs and Features. I have also checked my PATH. For some reason it isn't in either.

Upvotes: 106

Views: 207160

Answers (12)

Ajay Singh Meena
Ajay Singh Meena

Reputation: 65

By default your program would be installed here (if you used the System Installer)...

C:\Program Files\Microsoft VS Code\

If you have chosen different directory while installing it you can get it by:

  1. Go to the icon location
  2. Right click open properties
  3. Check target

Upvotes: 1

Rich Lysakowski PhD
Rich Lysakowski PhD

Reputation: 3093

Someone I was working with "lost" the shortcut for VSCode. I started VSCode just by typing "code" from the command line. Then we recreated the Windows shortcut for the Start Menu.

My advice is to always use the "System Installer" and "Install for All Users" using a system administrator privileged account. Then enable VSCode to "Run As Administrator" by default. You will have the most flexibility, won't get the VSCode disappointing error "failed build, insufficient privilege to write to folder XYZ" after waiting many minutes for a big virtual environment or build job.

Upvotes: 1

Krzysztof Waclawski
Krzysztof Waclawski

Reputation: 21

In 2023 with VSC ver 1.73.1 my path is C:\Users{YOUR_USER_HERE}\AppData\Local\Programs\Microsoft VS Code

I went to system --> environment variables-->path-->edit variables--->new--->pasted C:\Users{YOUR_USER_HERE}\AppData\Local\Programs\Microsoft VS Code in there.

typing code on powershell, gitbash works now

Upvotes: 2

luciandex
luciandex

Reputation: 647

The difference is:
System Installer will install VSC in C:\Program Files\Microsoft VS Code\
User Installer will install VSC in %HOMEPATH%\AppData\Local\Programs\Microsoft VS Code\

Search for the files with respect the version installed.

Upvotes: 5

Chris Sprague
Chris Sprague

Reputation: 3584

The way I find most intuitive and easy to remember is:

  1. Search for Visual Studio Code in the Windows 10 search bar -> right-click -> Open File Location

    For me this goes directly to:

    C:\Users\{YOUR_NAME}\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Visual Studio Code

  2. Right-click on the shortcut -> Properties -> Start in:

    "C:\Users\{YOUR_NAME}\AppData\Local\Programs\Microsoft VS Code"

Upvotes: 5

ijka5844
ijka5844

Reputation: 45

I found it at

C:\Users\%username%\source\repos\Notes\%VSCode-folder%\bin\Debug\

Where %username% is the user and %VSCode-folder% is the VSCode project

Upvotes: 0

Suman
Suman

Reputation: 359

There are two types of installer available for VSCode. Go to link to find type of installer you want.

If you are using/going for User Installer, the version will be installed at:

C:\Users\{UserName}\AppData\Local\Programs\Microsoft VS Code

If you are using/going for 64bit System installer, the version will be installed at:

C:\Program Files\Microsoft VS Code\

If you are using/going for 32bit System installer, the version will be installed at:

C:\Program Files (x86)\Microsoft VS Code\

Upvotes: 31

Greyson R.
Greyson R.

Reputation: 460

If for some reason none of the other answers work, try this:

  1. Go into your vscode settings

  2. Find any setting that has 'Edit in settings.json' (for example - Color Customizations)

  3. Press ctrl+shift+s

  4. Go one folder up

  5. Copy + paste the file location (on the top for windows) into into another file explorer

  6. Profit

Upvotes: 3

Teodor Tite
Teodor Tite

Reputation: 1955

If you prefer username-agnostic path strings:

  • folder: %HOMEPATH%\AppData\Local\Programs\Microsoft VS Code\

  • executable: %HOMEPATH%\AppData\Local\Programs\Microsoft VS Code\bin\code

If you also want to use those path strings inside C#/C++ code:

  • folder: "\"%HOMEPATH%\\AppData\\Local\\Programs\\Microsoft VS Code\\\""

  • executable: "\"%HOMEPATH%\\AppData\\Local\\Programs\\Microsoft VS Code\\bin\\code\""

Upvotes: 4

Marco
Marco

Reputation: 23937

Update 10.11.2018

If you do a complete re-install, including uninstalling prior versions of code installed on your machine the new version will be installed at

C:\Users\{UserName}\AppData\Local\Programs\Microsoft VS Code

Update 06.07.2018

Since Version 1.25 VS Code supports portable mode. Instructions on how to use this are documented here.

You will need the ZIP file download version - not the installer. After unzipping the contents of the archive, create a data folder inside the folder, where code.exe is located. All settings will now be saved there and can be brought along with you.

|- VSCode-win32-x64-1.25.0-insider
|   |- Code.exe (or code executable)
|   |- data
|   |- ...

On macOS, the folder must be named code-portable-data and has to be a sibling of the app itself. Not inside the app.

|- Visual Studio Code.app
|- code-portable-data

The reasoning behind this can be read here: What is VSCode User Setup for Windows?


Update

If you are using the x64 version, the path is:

C:\Program Files\Microsoft VS Code\
C:\Program Files\Microsoft VS Code\Code.exe   

Original answer

At this point and time (Version 1.19.2) Vs code no longer resides in your AppData folder, but under

C:\Program Files (x86)\Microsoft VS Code\
C:\Program Files (x86)\Microsoft VS Code\Code.exe   

Upvotes: 149

Cody MacPixelface
Cody MacPixelface

Reputation: 1386

I used the new VSCode User Setup installer on Windows 10, and found the executable here:

C:\Users\my-username\AppData\Local\Programs\Microsoft VS Code\

Upvotes: 21

Shaun Luttin
Shaun Luttin

Reputation: 141522

Okay. I found it in the docs.

C:\Users\my.user\AppData\Local\Code\app-0.1.0

Upvotes: 13

Related Questions