Reputation: 1311
for example, i create a breakpoint at line 22,to just create a mark there
and while im coding, i want to jump to my mark line, for this breakpont is line 22, is there any shortcut to jump to breakpoint line there?
ctrl+G simply jumps to a line but not my breakpoint
Upvotes: 13
Views: 8162
Reputation: 509
It's possible to enhance workflow with setting up Go to Next Breakpoint as alternative F3
key action, which is by default assigned to Find Next command. Finding next occurrence of searched word is obviously quite important but we can assign F3
to both commands with also declaring When Expression
.
CTRL+K
CTRL+S
(Open Keyboard Shortcuts window)editor.debug.action.goToNextBreakpoint
to find Next breakpoint commandf3
key (press F3
and ENTER
)"f3"
In search field to list all commands using that keyCTRL+K
CTRL+E
(Changing When Expression)editorFocus && breakpointsExist && !findWidgetVisible
CTRL+K
CTRL+E
(Changing When Expression)editorFocus && findWidgetVisible
Upvotes: 2
Reputation: 890
Upvotes: 1
Reputation: 580
You can set the shortcut for this:
{
"key": "",
"command": "editor.debug.action.goToNextBreakpoint"
}
To do this, first go to the The Keyboard Shortcuts editor, and search goToNextBreakpoint, and add your preferred shortcut.
Upvotes: 10