How to run python code from the terminal of vs code | Run Code in VS Code Terminal | Simple guide

Published: 25 March 2025
on channel: ProgrammingKnowledge2
580
5

Want a faster way to execute Python scripts in VS Code without typing commands? The Code Runner extension lets you run code instantly with a single click!

🔹 Steps to Install & Enable Code Runner in VS Code:
1️⃣ Install Code Runner Extension

Open VS Code

Go to Extensions (Ctrl + Shift + X)

Search for "Code Runner" and click Install

2️⃣ Enable "Run in Terminal" for Python

Open VS Code Settings (Ctrl + ,)

Search for "Code Runner: Run In Terminal"

Check ✅ the option to enable it

3️⃣ Run Python Code with One Click!

Open any Python script (.py file)

Click the ▶️ Run Code button in the top-right

Or, use the shortcut: Ctrl + Alt + N

💡 What You’ll Learn in This Guide:
✔️ Install & configure Code Runner in VS Code
✔️ Enable terminal execution for Python scripts
✔️ Execute code quickly without opening a terminal manually
✔️ Boost your coding efficiency with shortcuts

📌 Found this helpful? Don’t forget to Like 👍, Share 📢, and Subscribe 🔔 for more Python & VS Code tips! 🚀

📢 Hashtags:
#Python #VSCode #Coding #Programming #CodeRunner #PythonAutomation #SoftwareDevelopment #Scripting #PythonScripts


On this page of the site you can watch the video online How to run python code from the terminal of vs code | Run Code in VS Code Terminal | Simple guide with a duration of hours minute second in good quality, which was uploaded by the user ProgrammingKnowledge2 25 March 2025, share the link with friends and acquaintances, this video has already been watched 580 times on youtube and it was liked by 5 viewers. Enjoy your viewing!