2

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.

Michael Moreno
  • 947
  • 1
  • 7
  • 24

2 Answers2

2

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.
Bhavyadeep Yadav
  • 819
  • 8
  • 25
2

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.

Molly Wang-MSFT
  • 7,943
  • 2
  • 9
  • 22
  • maybe a dumb question, but doesn't this mean that you can write the literal character `Q` in your code without it setting off this keyboard shortcut? – Tom Jun 14 '23 at 14:17