VSCode Setup For Python
VSCode Setup For Python
Figure 1: image-20200505205901494
1
Figure 2: image-20200505192005830
python -m venv ve
Here ve is the name of the environment and it can be any name.
2
Figure 3: image-20200505190423149
3
Figure 4: image-20200505190834489
4
Figure 5: image-20200505191401388
Figure 6: image-20200505210358302
Figure 7: image-20200505210516240
5
Figure 8: image-20200505191605310
Figure 9: image-20200505192233786
6
Figure 10: image-20200505194930165
6. Configuring Debugger:
Open debugger window (Run Ctrl + Shift + D) and create a launch.json file.
Select Environment: Python
Select a debug configuration: Debug the currently active Python file.
Insert the following line of code (will discuss about it is debugging section)
"stopOnEntry": true
7
Figure 12: image-20200505202957033
8
Figure 14: image-20200505200208427
9
B. Create and Edit Python Files:
C. Format Code:
pip3 install autopep8
10