https://code.visualstudio.com/
- Open the "show all commands" bar by hitting "F1" or "Ctrl+P"
- select some interpreter of your system (preferrably in a python environment)
You should now be able to run python programs
- create a new file "dummy.py"
- write 'print("hello world")' or similar to it
- Press F5 to run the file
- download the "exercises.zip" folder for the current class from google classroom
- Open visual studio code
- Go to menu bar > File > Open Folder
- Open the "show all commands" bar by hitting "F1"
- enter "configure tests"
- select "Python: Configure Tests"
- select pytest
- select the exercise directory
When you open e.g. "test_ex1.py" now, you should see green triangles next to the tests:
- right click on them and select either "debug" or "run" or "reveal in test explorer"
- go to https://marketplace.visualstudio.com/items?itemName=MS-vsliveshare.vsliveshare
- follow the instruction
- Open the "show all commands" bar by hitting "F1"
- Enter "live share"
- Select "Live Share: Join Collaboration session"
- Select "Continue as anonymous"
- Enter some username
- Enter the URL of the collaboration session (will be distributed in Webex)