3

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 .

storm
  • 4,943
  • 6
  • 35
  • 48
pro_logic96
  • 31
  • 1
  • 1
  • 2
  • Provide more Informations about what you've done , share the link from the official site of VSCode .. – storm Mar 07 '16 at 08:48
  • Possible duplicate of [How to install Visual Studio Code on Ubuntu?](http://askubuntu.com/questions/616075/how-to-install-visual-studio-code-on-ubuntu) – David Foerster Mar 07 '16 at 09:30
  • I have taken a look at this, but it doesn't solve my problem – pro_logic96 Mar 07 '16 at 09:46
  • No command 'code' found, did you mean: Command 'cde' from package 'cde' (universe) Command 'node' from package 'node' (universe) Command 'node' from package 'nodejs-legacy' (universe) Command 'tcode' from package 'emboss' (universe) Command 'cobe' from package 'python-cobe' (universe) Command 'cdde' from package 'cdde' (universe) Command 'cone' from package 'cone' (universe) Command 'ode' from package 'plotutils' (universe) code: command not found – pro_logic96 Mar 07 '16 at 09:46
  • this is output when I try to run Code from terminal – pro_logic96 Mar 07 '16 at 09:47
  • https://code.visualstudio.com/Docs/editor/setup#_linux these are steps on official site that I went throuhg – pro_logic96 Mar 07 '16 at 09:49
  • Be aware of upper- and lowercase. Please run `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
  • You obviously didn't do everything correctly. Please list the exact commands you used to install VS Code. – muru Mar 07 '16 at 12:37
  • Please add the extra information through edits to your question and not comments, this will make it easier for others to see your question and help you – Rumesh Mar 08 '16 at 13:00
  • Have you tried [this](http://stackoverflow.com/a/29958039/5531761) – Dylan Czenski Sep 29 '16 at 22:43

4 Answers4

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,943
  • 6
  • 35
  • 48
1

if you are using visual studio code insiders, use code-insiders command

Tejas Lotlikar
  • 2,875
  • 5
  • 16
  • 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
  • 2