r/learnpython • u/JamieOvechkin • Aug 09 '21
What is the keyboard shortcut in VS Code to run a python file?
106
Upvotes
Dumbest of dumb questions but I'm new to this, and have never used VS Code before.
I've written a basic python file that I can run just fine by pressing the triangle in the upper right hand corner in VS Code.
However, for the life of me, I cannot figure out how to run the same file via a keyboard shortcut.
Shift Enter seems to only run whatever text is selected. F5 runs the file, but leaves me in a debug mode.
I'm probably missing something glaringly obvious, but how do I run the whole file via a shortcut..?