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?
Asked
Active
Viewed 7.1k times
24
-
How do you run vscode now? Do you have a shortcut to it? Why can't you just look at the shortcut? Can you run it from CMD? Look in every directory in your PATH. – Scott - Слава Україні Nov 20 '18 at 04:25
-
1@Scott hes using Ubuntu not Windows – Keltari Nov 20 '18 at 06:04
-
1The basic question remains — how does the OP run vscode now? – Scott - Слава Україні Nov 20 '18 at 06:06
-
1@Scott thats not how linux works. his $path is probably empty. – Keltari Nov 20 '18 at 06:09
3 Answers
37
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.
Keltari
- 71,875
- 26
- 179
- 229
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
Tricky
- 121
- 1
- 4
1
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
Koshin
- 11
- 1