Reputation: 797
During debug mode, and I select an expression that returns some value. I can right click and select the 'debug: evaluate' option.
Can I create a command to perform this action? for example CTRL + SHIFT + I
Upvotes: 0
Views: 70
Reputation: 180611
Try the command:
editor.debug.action.selectionToRepl
{
"key": "ctrl+shift+i",
"command": "editor.debug.action.selectionToRepl"
}
Upvotes: 1
Reputation: 6217
You can customize keyboard shortcuts via File > Preferences > Keyboard Shortcuts. See https://code.visualstudio.com/docs/getstarted/keybindings.
I believe the shortcut your want is called Debug.EvaluateStatement.
Upvotes: 0