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

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

2 Likes