Best 5 way to run python code in vscode
Visual studio code is free IDLE for any programming language. it's a lightweight but powerful source code that runs on your desktop and it avails all kinds of operating systems like Windows, MAC, and Linux.
VS code is a big library base IDLE, Sometimes code is stuck because specific extensions are not running well. I think you are also facing these kinds of problems on a daily basis if you are using vs code.
for this kind of problem, we need to know another way to run our program
so here are the best 5 ways to run the program in vs code...
1. Using a built-in python extension
open your python file or create a python file using .py (test.py)
using "F5" or going to the run menu and selecting "start dubbing" to run your code in dubbing mode.
you can use the "run python file in terminal " in the command palette (ctrl + shift + p) to run your code without debugging
2. Using an integrated terminal
- open a terminal window by pressing ctrl+
- navigate to the directory that contains your python file using the cd command
- run your python file using the command " test.py".
3. Using code runner extension
Press " ctrl + Alt + n "
Post a Comment