在Visual Studio Code中找不到“调试:评估”的CommandID [英] CommandID for 'Debug: evaluate' in Visual Studio Code not found

查看:145
本文介绍了在Visual Studio Code中找不到“调试:评估”的CommandID的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在Visual Studio代码中为调试:评估命令添加键盘快捷键。不幸的是,没有记录命令调试:评估的命令ID。有人知道在哪里找到commandId吗?

I want to add a keyboard shortcut for the command 'Debug: evaluate' in Visual Studio Code. Unfortunately, the command ID for the command 'Debug: evaluate' is not documented. Did someone know where to find the commandId ?

推荐答案

editor.debug.action.selectionToRepl 是您要寻找的。它将在调试器控制台中执行当前选定的文本。

editor.debug.action.selectionToRepl is what you are looking for. It will execute the current selected text in the debugger console.

> https://github.com/Microsoft/vscode/blob/d2b6bbb46fbdf535e2c96b3e00ac56ac1d427a69/src/vs/workbench/parts/debug/ debugEditorActions.ts#L141

这篇关于在Visual Studio Code中找不到“调试:评估”的CommandID的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆