Recently, I have installed Visual Studio Code
on my Ubuntu 15.10 and I have a problem running it from a terminal. I did everything correctly what they had written on official site of VSCode, but when I type code .
it gives me output command not found
.
Asked
Active
Viewed 1.6k times
3

storm
- 4,973

pro_logic96
- 31
4 Answers
2
If you want to run VS Code from the terminal, create the following link substituting /path/to/vscode/Code
with the absolute path to the Code executable by running this command
sudo ln -s /path/to/vscode/Code /usr/local/bin/code

storm
- 4,973
-
-
-
1This worked for me. I had installed my vscode on Ubuntu 18.04 through the Ubuntu Software app. My installation path was /usr/bin/code – Daniel Nalbach Dec 31 '18 at 16:11
1
if you are using visual studio code insiders, use code-insiders
command

Tejas Lotlikar
- 2,945
- 5
- 17
- 26
1
How do you install vscode (tar.gz or .deb) personnaly i install with .deb download .deb file (for example code_1.5.3-1474533365_amd64.deb), and then :
sudo dpkg -i code_1.5.3-1474533365_amd64.deb
that's all. it's tha simple way to install it.
0
As of 9/29/2016 and latest version of Code. In VS Code, open the "Command Palette" (View -> Command Palette) then type "Shell Command: Install 'code' in command PATH.
See: https://code.visualstudio.com/docs/setup/mac I'm guessing it will be similar on Ubuntu.

Jeff
- 101
-
-
This does not appear to be an option on Ubuntu. That shell command is not in the palette. – Daniel Nalbach Dec 31 '18 at 16:12
ls -l /usr/local/bin/code
and append the output to your question by editing it. Don't put it in a comment. Makes a mess. . – Nephente Mar 07 '16 at 09:51