Skip to content
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

Undo just part of your code #236479

Open
yellowLight236 opened this issue Dec 18, 2024 · 0 comments
Open

Undo just part of your code #236479

yellowLight236 opened this issue Dec 18, 2024 · 0 comments
Assignees

Comments

@yellowLight236
Copy link

yellowLight236 commented Dec 18, 2024

I'll explain my idea with an example. I think this is the best way:
I have a file with 5 code instructions like this:

instruction 1 ...
instruction 2 ...
instruction 3 ...
instruction 4 ...
instruction 5 ...

I execute three actions on my file which has 5 instructions

  • action 1: I modify instruction 2
  • action 2: I modify instruction 4
  • action 3: I modify instruction 1

If I just want to undo action 1 with "Ctrl + z", that means I'll lose actions 2 and 3. So the idea is, can you make functionality that allows us to select just one part of the code (in this example instruction 1) to cancel without affecting the other instructions done before.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants