Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Key shortcut for running python file in VS code

In VS Code, I'm writing python code. I was wondering if there is a key shortcut to run the file instead of pressing the run button in the right top corner of the screen constantly.

like image 925
erwindenboer Avatar asked Jun 06 '26 09:06

erwindenboer


1 Answers

For anyone googling, this was my approach that has worked rather well

CTRLK + CTRLS brings the Keyboard Shortcuts menu.

keyboard shortcuts

At the top, in the search bar, type run python file.

enter image description here

From there, you can add a keybind to the Run Python File tag.

like image 190
Nolan Pestano Avatar answered Jun 08 '26 23:06

Nolan Pestano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!