Grogdunn / vscode-nb-keybinding

Netbeans Keybindings for VSCode
GNU General Public License v3.0
6 stars 4 forks source link

(suggestion) Netbeans debugging related shortcuts #9

Open nvaleontis opened 2 months ago

nvaleontis commented 2 months ago

Hey there,

Very useful extension.

It would be nice if you included the key bindings for debugging related commands. Let me know if you are interested into implementing them or should I do it in my own fork.

Here is a draft snippet generated with chatgpt that includes the bindings I am referring to. (I havent tested anything yet the code, i just include it to list the keybindings).

{
  "command": "workbench.action.debug.stepOver",
  "key": "F8",
  "when": "inDebugMode && editorFocus"
},
{
  "command": "workbench.action.debug.stepInto",
  "key": "F7",
  "when": "inDebugMode && editorFocus"
},
{
  "command": "workbench.action.debug.stepOut",
  "key": "shift+F7",
  "when": "inDebugMode && editorFocus"
},
{
  "command": "workbench.action.debug.continue",
  "key": "F9",
  "when": "inDebugMode && editorFocus"
},
{
  "command": "workbench.action.debug.restart",
  "key": "ctrl+shift+F5",
  "when": "inDebugMode && editorFocus"
},
{
  "command": "workbench.action.debug.stop",
  "key": "shift+F5",
  "when": "inDebugMode && editorFocus"
},
{
  "command": "workbench.action.debug.toggleBreakpoint",
  "key": "F9",
  "when": "editorFocus"
},
{
  "command": "workbench.action.debug.toggleColumnBreakpoint",
  "key": "ctrl+F8",
  "when": "editorFocus"
}
Grogdunn commented 2 months ago

Good shot! PRs are welcome! :smile: