Problems with vscode cli in manjaro

So I got this error when I tried to run vscode cli:

    ~/crashvue/tasktracker    main ?1  code .                                      127 ✘ 
zsh: correct 'code' to '_code' [nyae]? n
zsh: command not found: code
    ~/crashvue/tasktracker    main ?1        

I installed vscode with snap and idk how to configure vscode cli to work in command promt

snap run code
1 Like

I got this following response:

   ~/crashvue/tasktracker    main ?1  snap run code                               127 ✘ 
error: cannot find current revision for snap code: readlink /var/lib/snapd/snap/code/current: no such file or directory
    ~/crashvue/tasktracker    main ?1     

Oh I use insiders version and It did opened vscode.
But are there any way to configure the command to just code?

snap run code-insiders

make a alias alias <flag> <alias_name>=”command” and put it in .zshrc or .bashrc:

alias code="snap run code-insiders"
1 Like

Can you send the command?

I’m thinking this might be the/a reason. See if there is a .desktop file for it in /usr/share/application. (I think that’s the location anyway.)

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.