Skip to content

Feedback on "Jump to Cursor" feature #9947

Closed

Description

@luabud

This issue is meant for gathering feedback around the "Jump to Cursor" feature.

  • Can its name be more descriptive?
  • Is there a way we can make it more discoverable?

Activity

  1. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Feb 6, 2020
  2. jahan01 commented on Feb 12, 2020

    @jahan01

    Its head line worthy feature, but yet it was released unannounced. I would like to know how does it go back in time to already executed expressions?

  3. luabud commented on Feb 12, 2020

    @luabud
    MemberAuthor

    Hi jahan01! It doesn't actually go back in time in the sense that it doesn't restore previous states. It really just defines the next point that the debugger will execute. If you set it to execute a piece of code that the debugger had already past through (by right clicking the editor on the line you wish to execute and selecting "Jump to Cursor"), all it will do is execute the code starting from that line, without changing its current state.

  4. bersbersbers commented on Feb 13, 2020

    @bersbersbers

    Since you ask:

    Did you know about this feature before this blog post?

    I have been asking for this more than two years ago, and stopped hoping it would ever arrive. I had no idea it's implemented. I love it.

    Do you think its name can be improved to better indicate its behaviour?

    I like "Set Next Statement", which I believe I have been knowing under this name since 2009 in Visual Studio doing C# development:
    https://docs.microsoft.com/en-us/visualstudio/debugger/navigating-through-code-with-the-debugger?view=vs-2019#BKMK_Set_the_next_statement_to_execute

    It's also under this name that this feature is requested heavily (and/or provided) for various languages:
    VS Code: microsoft/vscode#12514
    VS Code: https://stackoverflow.com/questions/51552833/is-there-something-similar-to-set-next-statement-available-in-visual-studio-co
    C#: dotnet/vscode-csharp#2785
    C++: microsoft/vscode-cpptools#1025
    C++: https://marketplace.visualstudio.com/items?itemName=ntoskrnl7.cxx-set-next-statement-extension
    PTVSD: microsoft/ptvsd#18

  5. luabud commented on Feb 14, 2020

    @luabud
    MemberAuthor

    Thank you for the feedback, bersbersbers! That's a very good point, renaming it to "Set Next Statement" would be more consistent. I added this suggestion to issue #9875 and will talk to the team about it. 😊

  6. gilescope commented on Mar 10, 2020

    @gilescope

    +1 for Set Next Statement. Jump to Cursor sounds like an editor thing. I was just searching around to figure out what Set Next Statement was called and stumbled on this ticket :-)

  7. gilescope commented on Mar 10, 2020

    @gilescope

    Also I notice Alt-V isn't used at the moment as a key binding. If you think of 'pasting' the instruction pointer as setting it... felt nice to me anyway.

  8. luabud commented on Mar 11, 2020

    @luabud
    MemberAuthor

    That's great feedback Squirrel (@gilescope), and a very good point as to why we should really rename it. Thank you 😊

    Interesting that you mention Alt+V. When I use it in VS Code, it opens the "View" menu. This is nice in terms of accessibility, so I'd be a bit concerned of overriding it for set next statement command. But these are all great things for me to bring up to the team.

  9. luabud commented on Apr 7, 2020

    @luabud
    MemberAuthor

    Just to give an update, the VS Code team is looking into adding "set next statement" as an alias to the "Jump to Cursor" command, so that it will show in the command palette when searching for "set next statement" 😊

  10. luabud commented on Aug 18, 2020

    @luabud
    MemberAuthor

    The alias was added in the June 2020 version of VS Code 🥳

  11. ghost removed
    needs proposalNeed to make some design decisions
    on Aug 18, 2020
  12. locked as resolved and limited conversation to collaborators on Oct 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions