Setting up visual studio for python
-
Ensure that you have installed Visual Studio Code (at the time of commit - Version 1.62)
-
Install the following extensions
- Python
- Create a directory workspace
$ mkdir -p ~/workspace/proj
$ cd ~/workspace
### Create a virtual env
$ python3 -m venv venv
$ ls
proj venv
- Now you can open visual studio from terminal
$ cd ~/workspace
$ code .