How to open vscode from terminal with "code ."?

I installed “vscode” from the app store, but I can’t open vscode from the terminal with the command “code .”

PS: I’m using zsh

Thanks,
Davi

Well, I’m very new on linux, but I think I solve this problem …

The vscode is installed from store, so we can execute in the terminal using this command: flatpak run com.visualstudio.code

To run like the windows terminal we can create an alias in the ~/.zshrc:
alias code=‘flatpak run com.visualstudio.code &>/dev/null’

now the “code .” will work

1 Like