-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feedback on "Jump to Cursor" feature #9947
Comments
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? |
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. |
Since you ask:
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.
I like "Set Next Statement", which I believe I have been knowing under this name since 2009 in Visual Studio doing C# development: It's also under this name that this feature is requested heavily (and/or provided) for various languages: |
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. 😊 |
+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 :-) |
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. |
That's great feedback @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. |
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" 😊 |
The alias was added in the June 2020 version of VS Code 🥳 |
This issue is meant for gathering feedback around the "Jump to Cursor" feature.
The text was updated successfully, but these errors were encountered: