How to find vscode installed path in ubuntu

By default, the executable is /usr/bin/code

If for some reason it was installed in a different directory, from a terminal type:

which code

And it will tell you the path to the executable.


I wasn't able to find it using

which code

I was able to find it using

whereis code

This is running PopOS 20.04


If you used snap to install it, then it will be at /snap/bin/code, but if you didn't use snap or did not find it there, then just execute this command:-

which code