microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
162.48k stars 28.64k forks source link

Ability to drag and drop breakpoints #88227

Open ariffjeff opened 4 years ago

ariffjeff commented 4 years ago

Issue Type: Feature Request

The ability to move breakpoints, especially those that are conditional, would be considerably easier than having to delete a breakpoint and then recreate it with the same condition information on another line. Drag and drop functionality would work pretty well here I imagine.

VS Code version: Code 1.41.1 (26076a4de974ead31f97692a0d32f90d735645c0, 2019-12-18T14:58:56.166Z) OS version: Windows_NT x64 10.0.18362

weinand commented 4 years ago

yes, this would improve the usability of "rich" breakpoints.

isidorn commented 4 years ago

Agree, this is a fair feature request.

ariffjeff commented 4 years ago

As an added thought: For cases of files that are hundreds or thousands of lines long, it would probably be a good idea to be able to enter in a line number you want to move a breakpoint to instead of having to click and drag it over an entire document. The Breakpoints dropdown already displays the line numbers for each breakpoint so double clicking or right clicking them is perhaps the best way to enter line number values?

joerohde commented 4 years ago

This is becoming more frustrating as I use conditional breakpoints more and more.

It's a big break in flow to display/copy/re-create-condition-breakpoint/paste when I want to drag it down a line.

Also clicking or double clicking the line number in the breakpoints panel and having a context menu item for changing the line number in that panel would be a bonus.

isidorn commented 4 years ago

Overall this feature request makes sense, however this is a short iteration thus I do not think I will have time to tackle this milestone. Due to that pushing to May.

isidorn commented 4 years ago

This iteration is even shorter due to holidays. Thus pushing to on-deck and we would put this back on the plan when we have cycles.

isidorn commented 3 years ago

I have a simple version of this working https://github.com/microsoft/vscode/pull/114717 However for more powerfull support where we are able to render images while dragging and to be able to drag between multiple editors we would need this as a prerequest https://github.com/microsoft/vscode/issues/114776 Due to that moving this item to next milestone

alefragnani commented 3 years ago

Hi @isidorn ,

Are there any chances of exposing this drag and drop capability/event to Decorators as well, so extensions could also subscribe?

Thank you

ps: I did search the open issues about it, but didn't find any 😬

isidorn commented 3 years ago

@alefragnani yes it would be possible, but we would first do the breakpoint in the core and only after that potential add this if there is enough extensions interested.. It would be best if you file a new issue. Thanks

OneLookSigns commented 3 years ago

@isidorn Further functionality could be to also allow Control + Drag so that breakpoints with conditional information can be duplicated to other lines.

johncrim commented 1 year ago

Could the scope of this be expanded to include logpoints? (IMO drag + drop is more valuable for conditional breakpoints and logpoints than standard breakpoints, due to the effort required today to change/move them). If yes, then I can close #182133 as a dup.

jetpackguy commented 6 months ago

Please make it happen 🙏