how to open vs code from linux terminal code example
Example 1: open vscode in terminal sudo
sudo code --user-data-dir="~/.vscode-root"
Example 2: install vscode ubuntu command line
sudo snap install --classic code
Example 3: how to open ubuntu file in visual studio
$ code
$ code my-file
Example 4: open visual studio code from terminal ubuntu
code /path/filename