Rafael Augusto
Rafael Augusto

Reputation: 797

Can I create a shortcut to a command?

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

Answers (2)

Mark
Mark

Reputation: 180611

Try the command:

editor.debug.action.selectionToRepl

{
    "key": "ctrl+shift+i",
    "command": "editor.debug.action.selectionToRepl"
}

Upvotes: 1

Darryl
Darryl

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

Related Questions