I followed the instructions for installing vscode:
Linux
- Download Visual Studio Code for Linux.
- Make a new folder and extract VSCode-linux-x64.zip inside that folder.
- Double click on Code to run Visual Studio Code.
Tip: 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
sudo ln -s /path/to/vscode/Code /usr/local/bin/code
Now, you can simply type
code .
in any folder to start editing files in that folder.
However upon typing code .
I get:
No command 'code' found, did you mean:
Command 'cone' from package 'cone' (universe)
Command 'tcode' from package 'emboss' (universe)
Command 'ode' from package 'plotutils' (universe)
Command 'cdde' from package 'cdde' (universe)
Command 'node' from package 'node' (universe)
Command 'node' from package 'nodejs-legacy' (universe)
Command 'cde' from package 'cde' (universe)
Command 'cobe' from package 'python-cobe' (universe)
What have I done wrong?
Clicking on the Code executable works ok.
nikolai@dante:~$ ls -l /usr/local/bin/code
lrwxrwxrwx 1 root root 12 Oct 3 17:13 /usr/local/bin/code -> /vscode/Code
nikolai@dante:~$ echo $PATH
/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games
ls -l /usr/local/bin/code
andecho $PATH
/vscode/
? Please check the path. I would also advise to put it into/opt/vscode
. That's what/opt
is for.