How to Find Vscode Installed Path in Ubuntu

I am trying to change the FileZilla filetype association and set vscode as default for any filetype. I couldn't find installed application path or executable file to give a path. How do I make vscode the default executable for all filetypes?

4

3 Answers

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.

2

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor

Sophia Al-Mansoor

Global Business & E-Commerce Reporter

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.

Share this article
Twitter Facebook Pinterest