How to set up Python on Visual Studio Code in 2021

Subscribers:
50,600
Published on ● Video Link: https://www.youtube.com/watch?v=9o4gDQvVkLU



Category:
Tutorial
Duration: 6:57
387,910 views
5,661


How to setup Python on Visual Studio Code (vscode)

Install Python: https://www.python.org/
Install Visual Studio Code: https://code.visualstudio.com/

After installing python, open the command prompt/terminal, and type in python --version or py --version. If you have installed python successfully, you will see the version of python you have.

Open vscode, and create new file. Name it whatever you want, but be sure to include the .py extension.

On the left, click the extensions icon, and search for Python. Install the python extension by Microsoft. This will allow for Python support in vscode.
Then, search for code runner and install the extension. This will add a run button at the top right of your vscode. Clicking this button will run your python code.

To have code runner output to the terminal instead of the built-in output console, click the settings icon (gear icon) on the bottom left corner. Scroll down until you see Code Actions on Save. Click settings.json and the file will open.
Add this line inside the json file: "code-runner.runInTerminal": true,

After that, you are all set!

Website: https://www.kennyyipcoding.com/

Java Game Programming Projects Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4Y1XQOqNsL9Fgg_p6nYhcng

JavaScript Game Programming Projects Playlist:
https://www.youtube.com/playlist?list=PLnKe36F30Y4bLhA-st9sC4ZthyV7nsL2Q

Subscribe for more coding tutorials 😄!







Tags:
How to setup python on vscode
How to install python
install python on visual studio code
how to setup python on visual studio code
how to install python on visual studio code
set up python with visual studio code
python vscode
set up visual studio code
vscode
visual studio code python
vscode python setup
add run button in vscode
add run button in visual studio code
install visual studio code for python
how to install python in visual studio code
python vscode setup