1. Generate SSH config file using gcloud
command line
https://cloud.google.com/sdk/gcloud/reference/compute/config-ssh
You cant get ssh config for your Google Compute Engine project!
Notice: you need choose target GCP project before run below command.
2. Install Remote SSH
extention in Visual Studio Code.
https://code.visualstudio.com/blogs/2019/07/25/remote-ssh
3. Press ⇧⌘P
& Select target connection in Visual Studio Code!
Finaly you can connect in Visual Studio Code. Welcome to VS code when you write the code in SSH connection.