ubuntuvisual-studio-codezsh

VS Code code command not working anymore on terminal on Pop OS


I know this is a common asked question. I've searched and the answers didn't help, as many of them are for OSx and WSL. I'm on Pop!_OS.

I'm a VS Code user and I'm used to type code . to open my current folder on VS Code. But as of today, this doesn't happen anymore.

code . = command not found

The many answers I found tell me to ctrl+shift+p on VS Code and type install to find a command that installs the shell. It's not available for me.

vscode printscreen showing aforementioned explanation

Specs:


Solution

  • In my case, I created a symbolic link.

    $ cd /usr/local/bin/
    $ sudo ln -s /usr/share/code/bin/code code
    

    from there on I could use code from wherever in the terminal (I also use Pop OS).