简体   繁体   中英

How to jump the line of breakpoint in Visual Studio Code?

for example, i create a breakpoint at line 22,to just create a mark there

Add a breakpoint at line 22

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

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.

  1. press ctrl+p and search Keyboard Shortcuts在此处输入图片说明

  2. search breakpoint and set Go To Next Breakpoint. I have set the key on F4在此处输入图片说明

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM