用于启动/重新启动的单个 VS Code 快捷方式
默认的 VS Code 快捷键似乎是:
- F5:开始
- Shift-F5:停止
- F8:继续(如果暂停)
- Shift-F8:重新启动
我最常想做的事情是“考虑所有更改并运行”,这意味着取决于状态的三种不同的东西:
- 如果不运行:F5
- 如果正在运行:Shift-F8(或 Shift-F5、F5)
- 如果暂停:Shift-F8(或 Shift-F5、F5)
有没有办法配置以便通过一个组合键即可启动(如果未运行)或重新启动?
The default VS Code shortcuts seem to be:
- F5: start
- Shift-F5: stop
- F8: continue (if paused)
- Shift-F8: restart
The thing I most often want to do is "take any changes into account and run", which means three different things depending on state:
- if not running: F5
- if running: Shift-F8 (or Shift-F5, F5)
- if paused: Shift-F8 (or Shift-F5, F5)
Is there a way to configure it so that one key combination will start (if not running) or restart?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
哦,似乎很简单:将“F5”设置为“调试:重新启动”(以及“调试:启动”)的快捷方式。 “inDebugMode”的 When 设置意味着 VS Code 知道执行重新启动而不是启动。
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.