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,973

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,973
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