This guide will walk you through the process of setting up Python in VS Code with all the essential tools for development.
- 📦 How to Python installed on your system Learn more
Visual Studio Code installed Download VS Code
📦 Step 2: Open VS Code
📦 Step 3: Go to the Extensions tab on the left sidebar or press
Ctrl+Shift+X
📦 Step 4: Search for "Python" by Microsoft and click Install
📦 Step 5: Check Python Installation
- Go to
Terminal > New Terminal
📦 Step 6: Type the following command:
python3 --version
python3 -VIf you see something like Python 3.x.x, you're good to go!
- Click on File > Open Folder
- Select Folder & Create Folder
- Save the file with
.pyextension (e.g.,hello.py)
- Type a simple Python script:
print("Hello, VS Code!")
- Click on the Run Python File button at the top right (
▶️ )
- Or right-click inside the file and choose Run Python File in Terminal
You have successfully set up Python in Visual Studio Code and are ready to start coding!












