问题
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 ?
回答1:
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/browser/debugEditorActions.ts#L141
来源:https://stackoverflow.com/questions/38898660/commandid-for-debug-evaluate-in-visual-studio-code-not-found