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

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.

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

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 at 11:56

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

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