VSCode is an amazing editor and complementing its functionality with free python runtime service provided by google colab can enable a lot of students who do not have high performance laptops to use the best of both worlds.
To use colab with vscode, first run the below code inside a colab notebook
What we are essentially doing here is, using ngrok to enable ssh connections to this instance.
Now just go to your ngrok page and get the ip and port. the username is root and the password is displayed when the above code is run.
Now, you can just use these and connect via VSCode
Disclaimer: The source code used above was from the following source