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 .

  • Provide more Informations about what you've done , share the link from the official site of VSCode .. – storm Mar 7 '16 at 8:48
  • Possible duplicate of How to install Visual Studio Code on Ubuntu? – David Foerster Mar 7 '16 at 9:30
  • I have taken a look at this, but it doesn't solve my problem – pro_logic96 Mar 7 '16 at 9: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 7 '16 at 9:46
  • this is output when I try to run Code from terminal – pro_logic96 Mar 7 '16 at 9:47

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
  • I have done it but still it doesn't work . – pro_logic96 Mar 7 '16 at 9:45
  • What's the output of the above command so I can improve my answer ? – storm Mar 7 '16 at 9:52
  • This 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

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.


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.

  • This is not an option when I type 'shell' into the command palette – JAstuccio Feb 17 '18 at 11:56
  • 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

Your Answer

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

Not the answer you're looking for? Browse other questions tagged or ask your own question.