清除 VSCode 中所有断点的命令(如在 Visual Studio 中)

Jor*_*tos 6 c# visual-studio-code

在 Visual Studio 中,您可以Ctrl+Shit+F9清除所有断点。
VsCode 中是否有类似的功能?我找不到任何好的答案。

谢谢!

小智 13

另一种选择是转到“运行”->“删除所有断点”。

VSCode 删除所有断点


Mar*_*ark 11

有一个未绑定的命令workbench.debug.viewlet.action.removeAllBreakpoints,您可以将其设置为您自己的键绑定。

{
  "key": "alt+b",
  "command": "workbench.debug.viewlet.action.removeAllBreakpoints"
},
Run Code Online (Sandbox Code Playgroud)

在键盘快捷键中只需搜索breakpoint并出现各种命令。

并在 Breakpoints 面板 viewlet 中将鼠标悬停在其中一个图标上以查看它将“删除所有断点”

在此处输入图片说明