how to open visual studio as editor in ubuntu code example
Example 1: visual studio code ubuntu
sudo snap install --classic code # or code-insiders
Example 2: how to open ubuntu file in visual studio
$ code
$ code my-file
sudo snap install --classic code # or code-insiders
$ code
$ code my-file