Supun Wijerathne
Supun Wijerathne

Reputation: 12938

Is there a way to undo edits done inside a specific region intelliJ?

I am using intellij for development purpose. I wonder whether it has a feature where I can select a region (say I highlighted a method block), and undo edits done in that region. i.e. I am going upwards through the history local to that region.

Anyone knows whether there's any feature similar to that?

Upvotes: 0

Views: 161

Answers (1)

eekboom
eekboom

Reputation: 5802

You can actually select all the text of that region, then right click (context menu) and select Local History -> Show History for Selection

It is not as fine grained as Ctrl-Z, though. You only get snapshots at specific events (updating from VCS, running a run/debug configuration, saving the file (I am not sure about that one), ...).

Upvotes: 2

Related Questions