Steve Bennett
Steve Bennett

Reputation: 126777

Single VS Code shortcut for start/restart

The default VS Code shortcuts seem to be:

The thing I most often want to do is "take any changes into account and run", which means three different things depending on state:

Is there a way to configure it so that one key combination will start (if not running) or restart?

Upvotes: 5

Views: 1631

Answers (1)

Steve Bennett
Steve Bennett

Reputation: 126777

Oh, it seems to be as simple as: Set "F5" as the shortcut for "Debug: Restart" (as well as for "Debug: Start"). The When setting of "inDebugMode" means VS Code knows to perform a restart rather than a start.

Upvotes: 6

Related Questions