Keybind for VSCode green run button?

Viewed 906

What is the keybind command for the green run button at the top of VSCode? enter image description here

I am not using the code runner extension since it uses output instead of terminal. I just want the default VSCode run button.

2 Answers

There are two ways you can do it.

  1. F5: It will ask you for the debug configuration which you have to manually select.

Debug Config

  1. Ctrl + F5: It will simply execute the script without Debug mode.

Manage--> Keyboard Shortcuts, type Run Python File in Terminal and search, you'll find no keybindings set by default.

enter image description here

Click + to press desired key combination and press Enter. For example, I set Q as its shortcuts, then every time I press Q, it will run python file in Terminal.

Related