I used to work in PyCharm, but recently started working with the Visual Studio Code Mac version. I faced a problem after using pycharm. I downloaded the code runner extension, but still, it’s not good. When I hit the run button, it runs not the last code. So if I change something in my code and run it again, it keeps running the old version, until I save it or run via terminal.
For example:
print(“hi”)
I hit run and the output is: hi
Add something new
print(“hi”)
print(123)
Hit run and The output is still - hi
Can someone help me, so when I hit the run button it will run the code with the latest changes.