Can I Run Code in Visual Studio Code While Editing?

July 30, 2025 3 answers
Asked by CodeWizard42
I'm looking for a way to see live changes in my code while I edit it. Specifically, is there a way to do this in Visual Studio Code? I want to actively view my updates as I make changes to my code. I'm coding in Python on Windows and using tkinter for my GUI. Any tips would be greatly appreciated!

Answers

TechieTim
You can achieve this if you're working on a web application with tools like Webpack or Vite. These tools allow for live updates in the browser whenever you save your changes, so you can see the results immediately. Just keep your code file open in the browser with a localhost server running.

CodeWizard42: Is this just for JavaScript? I'm using Python with tkinter, so will it work the same?

Reply to this answer
CuriousCoder
If your app has a REPL (Read-Eval-Print Loop), that's a great way to see changes in real-time. You might not get the same experience as with web frameworks, but some libraries may allow for partial reloading or refreshing components.
Reply to this answer
DevInsight
For Python, especially using tkinter, the live update scenario is a bit tricky since tkinter applications typically need to restart to reflect changes. However, you can try running your main file in an integrated terminal; just make sure to rerun the script each time you edit the UI components. Alternatively, look into other frameworks that support hot reload for more interactive experiences.

CodeWizard42: Thanks! I'll look into that.

Reply to this answer

Add your answer

Answers are reviewed before publication.

Related Discussions