I am using Visual Studio Code, and I am new to it. The theme is the dark one. My problem is when I am running python code, it doesn't show it is running and there is not a stop button. Doesn't VS Code have a stop button and a rerun button? Because if the code is running like a complex operation in a file, it doesn't show it is running. If there was the red square to stop, we would know it is running. Thanks
Asked
Active
Viewed 78 times
-1
-
1Does this answer your question? [How to execute Python code from within Visual Studio Code](https://stackoverflow.com/questions/29987840/how-to-execute-python-code-from-within-visual-studio-code) – Thibault Cimic May 31 '23 at 07:20
-
how exactly are you running your program? launch config? task? integrated terminal? – starball May 31 '23 at 19:30
-
I use the play arrow to Run code, what I mean is that there isnt a stop button instead of using combination of keys. – Dini May 31 '23 at 20:09
1 Answers
0
By default, a python script, ie a *.py file, is just a file with some text in it, and VScode, a text editor, is gonna open it as such. Meaning, when opening a python script with VScode, the python script is not "running".
As for "how to run a python script within VScode", there are already a lot of posts on this subject, here is one.
Or as for "how to debug python code with VScode", ie you'll have the options to stop the program with a stop button, put breakpoints etc..., there are already a lot of answers on the internet, for example this video.

Thibault Cimic
- 320
- 1
- 9